#4F147E#4F147E
#4F147E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.163 H 303.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #4F147E |
|---|---|
| RGB | rgb(79, 20, 126) |
| HSL | hsl(273, 73%, 29%) |
| HSV | hsv(273, 84%, 49%) |
| CMYK | cmyk(37.3%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(22.55, 45.80, -47.35) |
| CIE-LCH | lch(22.55, 65.88, 314.05°) |
| OKLab | oklab(35.33% 0.0909 -0.1351) |
| OKLCH | oklch(35.33% 0.163 303.9) |
| XYZ | xyz(7.2396, 3.6689, 20.0614) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.49
Royal Purple (survey)
#4B006E
ΔE00 3.49
Indigo (survey)
#380282
ΔE00 4.79
Rebeccapurple
#663399
ΔE00 7.89
Indigo Blue
#3A18B1
ΔE00 8.55
Midnight Blue
#191970
ΔE00 8.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F147E #437E14
analogous
#1A147E #4F147E #7E1478
triadic
#4F147E #7E4F14 #147E4F
tetradic
#4F147E #7E1A14 #437E14 #14787E
square
#4F147E #7E1A14 #437E14 #14787E
split-complementary
#4F147E #787E14 #147E1A
monochromatic
#11041A #2E0C49 #4F147E #701CB3 #902EDE
Accessibility & contrast
On white
12.11
#4F147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4F147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F147E
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F147E | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#45314A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4f147e; /* rgb */ color: rgb(79, 20, 126); /* oklch */ color: oklch(35.3% 0.163 303.9);
Tailwind
colors: {
custom: {
50: '#865aa4',
500: '#4f147e',
950: '#000000',
},
}SCSS
$custom: #4f147e; $custom-light: #865aa4; $custom-dark: #000000;
JSON
{
"hex": "#4f147e",
"rgb": {
"r": 79,
"g": 20,
"b": 126
},
"hsl": {
"h": 273.396,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.3533,
"c": 0.1628,
"h": 303.9
},
"luminance": 0.03669
}Semantic roles & 50–950 ramp
primary
#4F147E
secondary
#70B33A
accent
#EF388A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F