#4D0066 color
#4D0066 is a dark, vivid violet, closest to the CSS named color indigo (#4B0082).
Color values
| HEX | #4D0066 |
| RGB | rgb(77, 0, 102) |
| HSL | hsl(285, 100%, 20%) |
| CMYK | cmyk(25%, 100%, 0%, 60%) |
| Decimal | 5046374 |
| CSS | color: #4D0066; |
| Android | 0xFF4D0066 |
| Swift | UIColor(red: 0.302, green: 0.000, blue: 0.400, alpha: 1) |
Accessibility and contrast
| White text on #4D0066 | 13.93:1 — AA pass · AA large pass · AAA pass |
| Black text on #4D0066 | 1.51:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #4D0066
Each swatch keeps the hue and saturation of #4D0066 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #4D0066
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #4D0066 in code
/* CSS */
.element { color: #4D0066; background-color: #4D0066; }
.element { color: rgb(77 0 102); }
.element { color: hsl(285 100% 20%); }
/* Tailwind arbitrary value */
<div class="bg-[#4D0066] text-white">
/* SCSS variable */
$brand: #4D0066;
Frequently asked questions
What color is #4D0066?
#4D0066 is a dark, vivid violet. Its hue sits at 285° on the color wheel, with 100% saturation and 20% lightness.
What is #4D0066 in RGB?
#4D0066 converts to rgb(77, 0, 102) — 77 red, 0 green and 102 blue.
What is #4D0066 in CMYK?
Approximately cmyk(25%, 100%, 0%, 60%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #4D0066 be white or black?
White gives the better contrast ratio (13.93:1 versus 1.51:1).
What is the complementary color of #4D0066?
#1A6600 — the hue directly opposite #4D0066 on the color wheel.