#4F218C#4F218C
#4F218C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.164 H 297.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #4F218C |
|---|---|
| RGB | rgb(79, 33, 140) |
| HSL | hsl(266, 62%, 34%) |
| HSV | hsv(266, 76%, 55%) |
| CMYK | cmyk(43.6%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(25.69, 43.89, -51.00) |
| CIE-LCH | lch(25.69, 67.28, 310.72°) |
| OKLab | oklab(37.92% 0.0757 -0.1459) |
| OKLCH | oklch(37.92% 0.164 297.4) |
| XYZ | xyz(8.5007, 4.6433, 25.2542) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.61
Rebeccapurple
#663399
ΔE00 5.72
Indigo (survey)
#380282
ΔE00 5.87
Indigo Blue
#3A18B1
ΔE00 6.44
Royal Purple (survey)
#4B006E
ΔE00 6.67
Darkslateblue
#483D8B
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F218C #5E8C21
analogous
#21298C #4F218C #85218C
triadic
#4F218C #8C4F21 #218C4F
tetradic
#4F218C #8C2129 #5E8C21 #218C85
square
#4F218C #8C2129 #5E8C21 #218C85
split-complementary
#4F218C #8C8521 #298C21
monochromatic
#170A29 #33155A #4F218C #6B2DBE #8A51D6
Accessibility & contrast
On white
10.89
#4F218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#4F218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F218C
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F218C | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3F3D55
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4f218c; /* rgb */ color: rgb(79, 33, 140); /* oklch */ color: oklch(37.9% 0.164 297.4);
Tailwind
colors: {
custom: {
50: '#8761ae',
500: '#4f218c',
950: '#000000',
},
}SCSS
$custom: #4f218c; $custom-light: #8761ae; $custom-dark: #000000;
JSON
{
"hex": "#4f218c",
"rgb": {
"r": 79,
"g": 33,
"b": 140
},
"hsl": {
"h": 265.794,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.37917,
"c": 0.16439,
"h": 297.4
},
"luminance": 0.04643
}Semantic roles & 50–950 ramp
primary
#4F218C
secondary
#8CB94F
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F