#4F157F#4F157F
#4F157F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.163 H 303.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4F157F |
|---|---|
| RGB | rgb(79, 21, 127) |
| HSL | hsl(273, 72%, 29%) |
| HSV | hsv(273, 83%, 50%) |
| CMYK | cmyk(37.8%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(22.76, 45.68, -47.63) |
| CIE-LCH | lch(22.76, 65.99, 313.80°) |
| OKLab | oklab(35.51% 0.0898 -0.1359) |
| OKLCH | oklch(35.51% 0.163 303.4) |
| XYZ | xyz(7.3225, 3.7309, 20.4089) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.55
Royal Purple (survey)
#4B006E
ΔE00 3.71
Indigo (survey)
#380282
ΔE00 4.80
Rebeccapurple
#663399
ΔE00 7.72
Indigo Blue
#3A18B1
ΔE00 8.38
Midnight Blue
#191970
ΔE00 8.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F157F #457F15
analogous
#1A157F #4F157F #7F157A
triadic
#4F157F #7F4F15 #157F4F
tetradic
#4F157F #7F1A15 #457F15 #157A7F
square
#4F157F #7F1A15 #457F15 #157A7F
split-complementary
#4F157F #7A7F15 #157F1A
monochromatic
#10041A #2E0C4A #4F157F #701EB4 #8F31DD
Accessibility & contrast
On white
12.03
#4F157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#4F157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F157F
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F157F | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#45324B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4f157f; /* rgb */ color: rgb(79, 21, 127); /* oklch */ color: oklch(35.5% 0.163 303.4);
Tailwind
colors: {
custom: {
50: '#865ba5',
500: '#4f157f',
950: '#000000',
},
}SCSS
$custom: #4f157f; $custom-light: #865ba5; $custom-dark: #000000;
JSON
{
"hex": "#4f157f",
"rgb": {
"r": 79,
"g": 21,
"b": 127
},
"hsl": {
"h": 272.83,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.35507,
"c": 0.1629,
"h": 303.4
},
"luminance": 0.03731
}Semantic roles & 50–950 ramp
primary
#4F157F
secondary
#72B43C
accent
#EE398B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F