#4B1F7C#4B1F7C
#4B1F7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.148 H 300.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #4B1F7C |
|---|---|
| RGB | rgb(75, 31, 124) |
| HSL | hsl(268, 60%, 30%) |
| HSV | hsv(268, 75%, 49%) |
| CMYK | cmyk(39.5%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(23.44, 39.86, -44.64) |
| CIE-LCH | lch(23.44, 59.85, 311.76°) |
| OKLab | oklab(35.78% 0.0753 -0.1274) |
| OKLCH | oklch(35.78% 0.148 300.6) |
| XYZ | xyz(7.0288, 3.9310, 19.4533) |
| Luminance | 0.0393 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.30
Royal Purple (survey)
#4B006E
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 5.66
Rebeccapurple
#663399
ΔE00 7.24
Midnight Blue
#191970
ΔE00 8.01
Darkslateblue
#483D8B
ΔE00 8.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B1F7C #507C1F
analogous
#1F217C #4B1F7C #791F7C
triadic
#4B1F7C #7C4B1F #1F7C4B
tetradic
#4B1F7C #7C1F21 #507C1F #1F7C79
square
#4B1F7C #7C1F21 #507C1F #1F7C79
split-complementary
#4B1F7C #7C791F #217C1F
monochromatic
#10071A #2D134B #4B1F7C #692BAD #8745D0
Accessibility & contrast
On white
11.76
#4B1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#4B1F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B1F7C
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B1F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B1F7C | 1.00 | 11.76 | 1.79 | 11.76 |
| #FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#40364B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4b1f7c; /* rgb */ color: rgb(75, 31, 124); /* oklch */ color: oklch(35.8% 0.148 300.6);
Tailwind
colors: {
custom: {
50: '#825fa3',
500: '#4b1f7c',
950: '#000000',
},
}SCSS
$custom: #4b1f7c; $custom-light: #825fa3; $custom-dark: #000000;
JSON
{
"hex": "#4b1f7c",
"rgb": {
"r": 75,
"g": 31,
"b": 124
},
"hsl": {
"h": 268.387,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.35782,
"c": 0.14796,
"h": 300.6
},
"luminance": 0.03931
}Semantic roles & 50–950 ramp
primary
#4B1F7C
secondary
#7EAF48
accent
#E34598
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F