#4F217E#4F217E
#4F217E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.148 H 302.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).
Color values
| HEX | #4F217E |
|---|---|
| RGB | rgb(79, 33, 126) |
| HSL | hsl(270, 58%, 31%) |
| HSV | hsv(270, 74%, 49%) |
| CMYK | cmyk(37.3%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(24.50, 40.20, -44.16) |
| CIE-LCH | lch(24.50, 59.72, 312.31°) |
| OKLab | oklab(36.7% 0.0789 -0.1258) |
| OKLCH | oklch(36.7% 0.148 302.1) |
| XYZ | xyz(7.5333, 4.2563, 20.1593) |
| Luminance | 0.0426 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.67
Royal Purple (survey)
#4B006E
ΔE00 5.29
Indigo (survey)
#380282
ΔE00 6.32
Rebeccapurple
#663399
ΔE00 6.49
Darkslateblue
#483D8B
ΔE00 8.24
Indigo Blue
#3A18B1
ΔE00 8.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F217E #507E21
analogous
#21217E #4F217E #7D217E
triadic
#4F217E #7E4F21 #217E4F
tetradic
#4F217E #7E2121 #507E21 #217E7D
square
#4F217E #7E2121 #507E21 #217E7D
split-complementary
#4F217E #7E7D21 #217E21
monochromatic
#12081D #31144E #4F217E #6D2EAE #8C4AD0
Accessibility & contrast
On white
11.34
#4F217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#4F217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F217E
11.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F217E | 1.00 | 11.34 | 1.85 | 11.34 |
| #FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#45374D
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4f217e; /* rgb */ color: rgb(79, 33, 126); /* oklch */ color: oklch(36.7% 0.148 302.1);
Tailwind
colors: {
custom: {
50: '#8561a4',
500: '#4f217e',
950: '#000000',
},
}SCSS
$custom: #4f217e; $custom-light: #8561a4; $custom-dark: #000000;
JSON
{
"hex": "#4f217e",
"rgb": {
"r": 79,
"g": 33,
"b": 126
},
"hsl": {
"h": 269.677,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.36703,
"c": 0.14849,
"h": 302.1
},
"luminance": 0.04256
}Semantic roles & 50–950 ramp
primary
#4F217E
secondary
#7EB14A
accent
#E24695
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F