#4F218E#4F218E
#4F218E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.167 H 296.8°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).
Color values
| HEX | #4F218E |
|---|---|
| RGB | rgb(79, 33, 142) |
| HSL | hsl(265, 62%, 34%) |
| HSV | hsv(265, 77%, 56%) |
| CMYK | cmyk(44.4%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(25.87, 44.42, -51.95) |
| CIE-LCH | lch(25.87, 68.35, 310.53°) |
| OKLab | oklab(38.1% 0.0752 -0.1487) |
| OKLCH | oklch(38.1% 0.167 296.8) |
| XYZ | xyz(8.6495, 4.7028, 26.0380) |
| Luminance | 0.0470 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.71
Rebeccapurple
#663399
ΔE00 5.68
Indigo (survey)
#380282
ΔE00 5.90
Indigo Blue
#3A18B1
ΔE00 6.14
Royal Purple (survey)
#4B006E
ΔE00 6.91
Royal
#0C1793
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F218E #608E21
analogous
#212A8E #4F218E #86218E
triadic
#4F218E #8E4F21 #218E4F
tetradic
#4F218E #8E212A #608E21 #218E86
square
#4F218E #8E212A #608E21 #218E86
split-complementary
#4F218E #8E8621 #2A8E21
monochromatic
#180A2B #33155C #4F218E #6B2DC0 #8A52D7
Accessibility & contrast
On white
10.82
#4F218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#4F218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F218E
10.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F218E | 1.00 | 10.82 | 1.94 | 10.82 |
| #FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#3E3E56
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4f218e; /* rgb */ color: rgb(79, 33, 142); /* oklch */ color: oklch(38.1% 0.167 296.8);
Tailwind
colors: {
custom: {
50: '#8761b0',
500: '#4f218e',
950: '#000000',
},
}SCSS
$custom: #4f218e; $custom-light: #8761b0; $custom-dark: #000000;
JSON
{
"hex": "#4f218e",
"rgb": {
"r": 79,
"g": 33,
"b": 142
},
"hsl": {
"h": 265.321,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.38096,
"c": 0.16665,
"h": 296.8
},
"luminance": 0.04703
}Semantic roles & 50–950 ramp
primary
#4F218E
secondary
#8EBA50
accent
#E542A1
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980