#4F158F#4F158F
#4F158F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.179 H 298.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #4F158F |
|---|---|
| RGB | rgb(79, 21, 143) |
| HSL | hsl(269, 74%, 32%) |
| HSV | hsv(269, 85%, 56%) |
| CMYK | cmyk(44.8%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(24.26, 49.60, -55.20) |
| CIE-LCH | lch(24.26, 74.22, 311.94°) |
| OKLab | oklab(37.01% 0.0843 -0.1582) |
| OKLCH | oklch(37.01% 0.179 298.1) |
| XYZ | xyz(8.4492, 4.1816, 26.3432) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.08
Indigo (survey)
#380282
ΔE00 4.59
Indigo Blue
#3A18B1
ΔE00 5.85
Royal Purple (survey)
#4B006E
ΔE00 5.94
Rebeccapurple
#663399
ΔE00 7.07
Ultramarine
#2000B1
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F158F #558F15
analogous
#15188F #4F158F #8C158F
triadic
#4F158F #8F4F15 #158F4F
tetradic
#4F158F #8F1518 #558F15 #158F8C
square
#4F158F #8F1518 #558F15 #158F8C
split-complementary
#4F158F #8F8C15 #188F15
monochromatic
#140524 #320D5A #4F158F #6C1DC4 #8B3CE2
Accessibility & contrast
On white
11.44
#4F158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#4F158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F158F
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F158F | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#3E3954
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4f158f; /* rgb */ color: rgb(79, 21, 143); /* oklch */ color: oklch(37.0% 0.179 298.1);
Tailwind
colors: {
custom: {
50: '#885cb1',
500: '#4f158f',
950: '#000000',
},
}SCSS
$custom: #4f158f; $custom-light: #885cb1; $custom-dark: #000000;
JSON
{
"hex": "#4f158f",
"rgb": {
"r": 79,
"g": 21,
"b": 143
},
"hsl": {
"h": 268.525,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.37006,
"c": 0.17921,
"h": 298.1
},
"luminance": 0.04182
}Semantic roles & 50–950 ramp
primary
#4F158F
secondary
#83C23E
accent
#F13798
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980