#4F218B#4F218B
#4F218B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 297.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).
Color values
| HEX | #4F218B |
|---|---|
| RGB | rgb(79, 33, 139) |
| HSL | hsl(266, 62%, 34%) |
| HSV | hsv(266, 76%, 55%) |
| CMYK | cmyk(43.2%, 76.3%, 0%, 45.5%) |
| CIE-LAB | lab(25.61, 43.62, -50.52) |
| CIE-LCH | lch(25.61, 66.75, 310.81°) |
| OKLab | oklab(37.83% 0.076 -0.1445) |
| OKLCH | oklch(37.83% 0.163 297.7) |
| XYZ | xyz(8.4273, 4.6139, 24.8677) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.56
Rebeccapurple
#663399
ΔE00 5.75
Indigo (survey)
#380282
ΔE00 5.86
Royal Purple (survey)
#4B006E
ΔE00 6.56
Indigo Blue
#3A18B1
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F218B #5D8B21
analogous
#21288B #4F218B #84218B
triadic
#4F218B #8B4F21 #218B4F
tetradic
#4F218B #8B2128 #5D8B21 #218B84
square
#4F218B #8B2128 #5D8B21 #218B84
split-complementary
#4F218B #8B8421 #288B21
monochromatic
#170A28 #33155A #4F218B #6B2DBC #8A51D6
Accessibility & contrast
On white
10.92
#4F218B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#4F218B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F218B
10.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F218B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F218B | 1.00 | 10.92 | 1.92 | 10.92 |
| #FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#403D54
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4f218b; /* rgb */ color: rgb(79, 33, 139); /* oklch */ color: oklch(37.8% 0.163 297.7);
Tailwind
colors: {
custom: {
50: '#8661ae',
500: '#4f218b',
950: '#000000',
},
}SCSS
$custom: #4f218b; $custom-light: #8661ae; $custom-dark: #000000;
JSON
{
"hex": "#4f218b",
"rgb": {
"r": 79,
"g": 33,
"b": 139
},
"hsl": {
"h": 266.038,
"s": 61.628,
"l": 33.725
},
"oklch": {
"l": 0.37828,
"c": 0.16326,
"h": 297.7
},
"luminance": 0.04614
}Semantic roles & 50–950 ramp
primary
#4F218B
secondary
#8BB94F
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F