#4F166F#4F166F
#4F166F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.146 H 309.8°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).
Color values
| HEX | #4F166F |
|---|---|
| RGB | rgb(79, 22, 111) |
| HSL | hsl(278, 67%, 26%) |
| HSV | hsv(278, 80%, 44%) |
| CMYK | cmyk(28.8%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(21.52, 41.48, -39.41) |
| CIE-LCH | lch(21.52, 57.21, 316.47°) |
| OKLab | oklab(34.21% 0.0932 -0.1118) |
| OKLCH | oklch(34.21% 0.146 309.8) |
| XYZ | xyz(6.3800, 3.3839, 15.3529) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.89
Indigo
#4B0082
ΔE00 4.71
Indigo (survey)
#380282
ΔE00 6.76
Plum Purple
#4E0550
ΔE00 6.80
Darkish Purple
#751973
ΔE00 8.21
Deep Violet
#490648
ΔE00 8.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F166F #366F16
analogous
#22166F #4F166F #6F1662
triadic
#4F166F #6F4F16 #166F4F
tetradic
#4F166F #6F2216 #366F16 #16626F
square
#4F166F #6F2216 #366F16 #16626F
split-complementary
#4F166F #626F16 #166F22
monochromatic
#12051A #2B0C3C #4F166F #7320A2 #982BD5
Accessibility & contrast
On white
12.52
#4F166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#4F166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F166F
12.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F166F | 1.00 | 12.52 | 1.68 | 12.52 |
| #FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#4A2C42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4f166f; /* rgb */ color: rgb(79, 22, 111); /* oklch */ color: oklch(34.2% 0.146 309.8);
Tailwind
colors: {
custom: {
50: '#845a99',
500: '#4f166f',
950: '#000000',
},
}SCSS
$custom: #4f166f; $custom-light: #845a99; $custom-dark: #000000;
JSON
{
"hex": "#4f166f",
"rgb": {
"r": 79,
"g": 22,
"b": 111
},
"hsl": {
"h": 278.427,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.34211,
"c": 0.14553,
"h": 309.8
},
"luminance": 0.03384
}Semantic roles & 50–950 ramp
primary
#4F166F
secondary
#62A53C
accent
#EA3E7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E