#4F1F7F#4F1F7F
#4F1F7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.152 H 302.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #4F1F7F |
|---|---|
| RGB | rgb(79, 31, 127) |
| HSL | hsl(270, 61%, 31%) |
| HSV | hsv(270, 76%, 50%) |
| CMYK | cmyk(37.8%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(24.24, 41.43, -45.22) |
| CIE-LCH | lch(24.24, 61.33, 312.50°) |
| OKLab | oklab(36.54% 0.0807 -0.1289) |
| OKLCH | oklch(36.54% 0.152 302.1) |
| XYZ | xyz(7.5443, 4.1745, 20.4829) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.22
Royal Purple (survey)
#4B006E
ΔE00 5.02
Indigo (survey)
#380282
ΔE00 5.94
Rebeccapurple
#663399
ΔE00 6.62
Indigo Blue
#3A18B1
ΔE00 8.52
Darkslateblue
#483D8B
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F1F7F #4F7F1F
analogous
#1F1F7F #4F1F7F #7F1F7F
triadic
#4F1F7F #7F4F1F #1F7F4F
tetradic
#4F1F7F #7F1F1F #4F7F1F #1F7F7F
square
#4F1F7F #7F1F1F #4F7F1F #1F7F7F
split-complementary
#4F1F7F #7F7F1F #1F7F1F
monochromatic
#12071D #30134E #4F1F7F #6E2BB0 #8C46D2
Accessibility & contrast
On white
11.44
#4F1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#4F1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F1F7F
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F1F7F | 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)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#45374D
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4f1f7f; /* rgb */ color: rgb(79, 31, 127); /* oklch */ color: oklch(36.5% 0.152 302.1);
Tailwind
colors: {
custom: {
50: '#8560a5',
500: '#4f1f7f',
950: '#000000',
},
}SCSS
$custom: #4f1f7f; $custom-light: #8560a5; $custom-dark: #000000;
JSON
{
"hex": "#4f1f7f",
"rgb": {
"r": 79,
"g": 31,
"b": 127
},
"hsl": {
"h": 270,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.36544,
"c": 0.15212,
"h": 302.1
},
"luminance": 0.04175
}Semantic roles & 50–950 ramp
primary
#4F1F7F
secondary
#7DB248
accent
#E44494
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F