#4F176F#4F176F
#4F176F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.144 H 309.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).
Color values
| HEX | #4F176F |
|---|---|
| RGB | rgb(79, 23, 111) |
| HSL | hsl(278, 66%, 26%) |
| HSV | hsv(278, 79%, 44%) |
| CMYK | cmyk(28.8%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(21.66, 41.07, -39.17) |
| CIE-LCH | lch(21.66, 56.76, 316.35°) |
| OKLab | oklab(34.31% 0.0922 -0.1111) |
| OKLCH | oklch(34.31% 0.144 309.7) |
| XYZ | xyz(6.3995, 3.4229, 15.3594) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.06
Indigo
#4B0082
ΔE00 4.82
Plum Purple
#4E0550
ΔE00 6.83
Indigo (survey)
#380282
ΔE00 6.85
Darkish Purple
#751973
ΔE00 8.18
Deep Violet
#490648
ΔE00 8.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F176F #376F17
analogous
#23176F #4F176F #6F1763
triadic
#4F176F #6F4F17 #176F4F
tetradic
#4F176F #6F2317 #376F17 #17636F
square
#4F176F #6F2317 #376F17 #17636F
split-complementary
#4F176F #636F17 #176F23
monochromatic
#120519 #2B0C3C #4F176F #7322A2 #972DD3
Accessibility & contrast
On white
12.47
#4F176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#4F176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F176F
12.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F176F | 1.00 | 12.47 | 1.68 | 12.47 |
| #FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00356D
Tritanopia (blue-blind)
#4A2C42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4f176f; /* rgb */ color: rgb(79, 23, 111); /* oklch */ color: oklch(34.3% 0.144 309.7);
Tailwind
colors: {
custom: {
50: '#845b99',
500: '#4f176f',
950: '#000000',
},
}SCSS
$custom: #4f176f; $custom-light: #845b99; $custom-dark: #000000;
JSON
{
"hex": "#4f176f",
"rgb": {
"r": 79,
"g": 23,
"b": 111
},
"hsl": {
"h": 278.182,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.34313,
"c": 0.14439,
"h": 309.7
},
"luminance": 0.03423
}Semantic roles & 50–950 ramp
primary
#4F176F
secondary
#63A53D
accent
#E93F7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E