#4B147E#4B147E
#4B147E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.162 H 301.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).
Color values
| HEX | #4B147E |
|---|---|
| RGB | rgb(75, 20, 126) |
| HSL | hsl(271, 73%, 29%) |
| HSV | hsv(271, 84%, 49%) |
| CMYK | cmyk(40.5%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(21.95, 45.16, -48.34) |
| CIE-LCH | lch(21.95, 66.15, 313.05°) |
| OKLab | oklab(34.79% 0.0846 -0.1381) |
| OKLCH | oklch(34.79% 0.162 301.5) |
| XYZ | xyz(6.9168, 3.5025, 20.0463) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.26
Royal Purple (survey)
#4B006E
ΔE00 3.61
Indigo (survey)
#380282
ΔE00 4.13
Midnight Blue
#191970
ΔE00 8.17
Indigo Blue
#3A18B1
ΔE00 8.20
Rebeccapurple
#663399
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B147E #477E14
analogous
#16147E #4B147E #7E147C
triadic
#4B147E #7E4B14 #147E4B
tetradic
#4B147E #7E1614 #477E14 #147C7E
square
#4B147E #7E1614 #477E14 #147C7E
split-complementary
#4B147E #7C7E14 #147E16
monochromatic
#10041A #2C0C49 #4B147E #6A1CB3 #8A2EDE
Accessibility & contrast
On white
12.35
#4B147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#4B147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B147E
12.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B147E | 1.00 | 12.35 | 1.70 | 12.35 |
| #FFFFFF | 12.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#40324A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4b147e; /* rgb */ color: rgb(75, 20, 126); /* oklch */ color: oklch(34.8% 0.162 301.5);
Tailwind
colors: {
custom: {
50: '#835aa4',
500: '#4b147e',
950: '#000000',
},
}SCSS
$custom: #4b147e; $custom-light: #835aa4; $custom-dark: #000000;
JSON
{
"hex": "#4b147e",
"rgb": {
"r": 75,
"g": 20,
"b": 126
},
"hsl": {
"h": 271.132,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.34793,
"c": 0.16202,
"h": 301.5
},
"luminance": 0.03503
}Semantic roles & 50–950 ramp
primary
#4B147E
secondary
#75B33A
accent
#EF3890
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F