#4F1B7F#4F1B7F
#4F1B7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.157 H 302.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #4F1B7F |
|---|---|
| RGB | rgb(79, 27, 127) |
| HSL | hsl(271, 65%, 30%) |
| HSV | hsv(271, 79%, 50%) |
| CMYK | cmyk(37.8%, 78.7%, 0%, 50.2%) |
| CIE-LAB | lab(23.60, 43.26, -46.26) |
| CIE-LCH | lch(23.60, 63.33, 313.08°) |
| OKLab | oklab(36.09% 0.0846 -0.132) |
| OKLCH | oklch(36.09% 0.157 302.7) |
| XYZ | xyz(7.4462, 3.9784, 20.4502) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.48
Royal Purple (survey)
#4B006E
ΔE00 4.41
Indigo (survey)
#380282
ΔE00 5.40
Rebeccapurple
#663399
ΔE00 7.07
Indigo Blue
#3A18B1
ΔE00 8.41
Midnight Blue
#191970
ΔE00 8.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F1B7F #4B7F1B
analogous
#1D1B7F #4F1B7F #7F1B7D
triadic
#4F1B7F #7F4F1B #1B7F4F
tetradic
#4F1B7F #7F1D1B #4B7F1B #1B7D7F
square
#4F1B7F #7F1D1B #4B7F1B #1B7D7F
split-complementary
#4F1B7F #7D7F1B #1B7F1D
monochromatic
#10061A #30104D #4F1B7F #6E26B1 #8D3ED6
Accessibility & contrast
On white
11.70
#4F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#4F1B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F1B7F
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F1B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F1B7F | 1.00 | 11.70 | 1.80 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#45354C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4f1b7f; /* rgb */ color: rgb(79, 27, 127); /* oklch */ color: oklch(36.1% 0.157 302.7);
Tailwind
colors: {
custom: {
50: '#855ea5',
500: '#4f1b7f',
950: '#000000',
},
}SCSS
$custom: #4f1b7f; $custom-light: #855ea5; $custom-dark: #000000;
JSON
{
"hex": "#4f1b7f",
"rgb": {
"r": 79,
"g": 27,
"b": 127
},
"hsl": {
"h": 271.2,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.36093,
"c": 0.15676,
"h": 302.7
},
"luminance": 0.03978
}Semantic roles & 50–950 ramp
primary
#4F1B7F
secondary
#79B343
accent
#E84091
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F