#4F1A7E#4F1A7E
#4F1A7E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.157 H 303.2°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #4F1A7E |
|---|---|
| RGB | rgb(79, 26, 126) |
| HSL | hsl(272, 66%, 30%) |
| HSV | hsv(272, 79%, 49%) |
| CMYK | cmyk(37.3%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(23.36, 43.44, -46.01) |
| CIE-LCH | lch(23.36, 63.28, 313.35°) |
| OKLab | oklab(35.9% 0.0858 -0.1312) |
| OKLCH | oklch(35.9% 0.157 303.2) |
| XYZ | xyz(7.3589, 3.9074, 20.1011) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.37
Royal Purple (survey)
#4B006E
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 5.36
Rebeccapurple
#663399
ΔE00 7.25
Indigo Blue
#3A18B1
ΔE00 8.57
Midnight Blue
#191970
ΔE00 8.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F1A7E #497E1A
analogous
#1D1A7E #4F1A7E #7E1A7B
triadic
#4F1A7E #7E4F1A #1A7E4F
tetradic
#4F1A7E #7E1D1A #497E1A #1A7B7E
square
#4F1A7E #7E1D1A #497E1A #1A7B7E
split-complementary
#4F1A7E #7B7E1A #1A7E1D
monochromatic
#100519 #2F104B #4F1A7E #6F24B1 #8E3CD7
Accessibility & contrast
On white
11.79
#4F1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4F1A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F1A7E
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F1A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F1A7E | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#45344B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4f1a7e; /* rgb */ color: rgb(79, 26, 126); /* oklch */ color: oklch(35.9% 0.157 303.2);
Tailwind
colors: {
custom: {
50: '#855da4',
500: '#4f1a7e',
950: '#000000',
},
}SCSS
$custom: #4f1a7e; $custom-light: #855da4; $custom-dark: #000000;
JSON
{
"hex": "#4f1a7e",
"rgb": {
"r": 79,
"g": 26,
"b": 126
},
"hsl": {
"h": 271.8,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.359,
"c": 0.15679,
"h": 303.2
},
"luminance": 0.03907
}Semantic roles & 50–950 ramp
primary
#4F1A7E
secondary
#77B242
accent
#E93F8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F