#4F197F#4F197F
#4F197F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.159 H 303.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #4F197F |
|---|---|
| RGB | rgb(79, 25, 127) |
| HSL | hsl(272, 67%, 30%) |
| HSV | hsv(272, 80%, 50%) |
| CMYK | cmyk(37.8%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(23.30, 44.11, -46.74) |
| CIE-LCH | lch(23.30, 64.27, 313.34°) |
| OKLab | oklab(35.89% 0.0864 -0.1334) |
| OKLCH | oklch(35.89% 0.159 303) |
| XYZ | xyz(7.4019, 3.8898, 20.4354) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.15
Royal Purple (survey)
#4B006E
ΔE00 4.15
Indigo (survey)
#380282
ΔE00 5.17
Rebeccapurple
#663399
ΔE00 7.29
Indigo Blue
#3A18B1
ΔE00 8.39
Midnight Blue
#191970
ΔE00 8.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F197F #497F19
analogous
#1C197F #4F197F #7F197C
triadic
#4F197F #7F4F19 #197F4F
tetradic
#4F197F #7F1C19 #497F19 #197C7F
square
#4F197F #7F1C19 #497F19 #197C7F
split-complementary
#4F197F #7C7F19 #197F1C
monochromatic
#10051A #2F0F4C #4F197F #6F23B2 #8E3AD8
Accessibility & contrast
On white
11.81
#4F197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4F197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F197F
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F197F | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#45344C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4f197f; /* rgb */ color: rgb(79, 25, 127); /* oklch */ color: oklch(35.9% 0.159 303.0);
Tailwind
colors: {
custom: {
50: '#865da5',
500: '#4f197f',
950: '#000000',
},
}SCSS
$custom: #4f197f; $custom-light: #865da5; $custom-dark: #000000;
JSON
{
"hex": "#4f197f",
"rgb": {
"r": 79,
"g": 25,
"b": 127
},
"hsl": {
"h": 271.765,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.35886,
"c": 0.15892,
"h": 303
},
"luminance": 0.0389
}Semantic roles & 50–950 ramp
primary
#4F197F
secondary
#77B341
accent
#EA3E8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F