#4F156F#4F156F
#4F156F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.147 H 309.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #4F156F |
|---|---|
| RGB | rgb(79, 21, 111) |
| HSL | hsl(279, 68%, 26%) |
| HSV | hsv(279, 81%, 44%) |
| CMYK | cmyk(28.8%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(21.38, 41.88, -39.63) |
| CIE-LCH | lch(21.38, 57.66, 316.58°) |
| OKLab | oklab(34.11% 0.0941 -0.1124) |
| OKLCH | oklch(34.11% 0.147 309.9) |
| XYZ | xyz(6.3613, 3.3464, 15.3467) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.73
Indigo
#4B0082
ΔE00 4.60
Indigo (survey)
#380282
ΔE00 6.68
Plum Purple
#4E0550
ΔE00 6.77
Deep Violet
#490648
ΔE00 8.22
Darkish Purple
#751973
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F156F #356F15
analogous
#22156F #4F156F #6F1562
triadic
#4F156F #6F4F15 #156F4F
tetradic
#4F156F #6F2215 #356F15 #15626F
square
#4F156F #6F2215 #356F15 #15626F
split-complementary
#4F156F #626F15 #156F22
monochromatic
#12051A #2A0B3C #4F156F #741FA2 #9828D6
Accessibility & contrast
On white
12.58
#4F156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#4F156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F156F
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F156F | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#4A2B42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4f156f; /* rgb */ color: rgb(79, 21, 111); /* oklch */ color: oklch(34.1% 0.147 309.9);
Tailwind
colors: {
custom: {
50: '#845a99',
500: '#4f156f',
950: '#000000',
},
}SCSS
$custom: #4f156f; $custom-light: #845a99; $custom-dark: #000000;
JSON
{
"hex": "#4f156f",
"rgb": {
"r": 79,
"g": 21,
"b": 111
},
"hsl": {
"h": 278.667,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.34114,
"c": 0.14663,
"h": 309.9
},
"luminance": 0.03346
}Semantic roles & 50–950 ramp
primary
#4F156F
secondary
#60A53A
accent
#EB3D7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E