#4B177E#4B177E
#4B177E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.159 H 301.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #4B177E |
|---|---|
| RGB | rgb(75, 23, 126) |
| HSL | hsl(270, 69%, 29%) |
| HSV | hsv(270, 82%, 49%) |
| CMYK | cmyk(40.5%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(22.36, 43.99, -47.68) |
| CIE-LCH | lch(22.36, 64.87, 312.69°) |
| OKLab | oklab(35.07% 0.0823 -0.1362) |
| OKLCH | oklch(35.07% 0.159 301.1) |
| XYZ | xyz(6.9730, 3.6150, 20.0650) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.72
Royal Purple (survey)
#4B006E
ΔE00 3.92
Indigo (survey)
#380282
ΔE00 4.43
Rebeccapurple
#663399
ΔE00 7.94
Midnight Blue
#191970
ΔE00 8.08
Indigo Blue
#3A18B1
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B177E #4A7E17
analogous
#17177E #4B177E #7E177E
triadic
#4B177E #7E4B17 #177E4B
tetradic
#4B177E #7E1717 #4A7E17 #177E7E
square
#4B177E #7E1717 #4A7E17 #177E7E
split-complementary
#4B177E #7E7E17 #177E17
monochromatic
#0F051A #2C0E4A #4B177E #6A20B2 #8935DA
Accessibility & contrast
On white
12.19
#4B177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4B177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B177E
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B177E | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#3F334B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4b177e; /* rgb */ color: rgb(75, 23, 126); /* oklch */ color: oklch(35.1% 0.159 301.1);
Tailwind
colors: {
custom: {
50: '#835ba4',
500: '#4b177e',
950: '#000000',
},
}SCSS
$custom: #4b177e; $custom-light: #835ba4; $custom-dark: #000000;
JSON
{
"hex": "#4b177e",
"rgb": {
"r": 75,
"g": 23,
"b": 126
},
"hsl": {
"h": 270.291,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.35073,
"c": 0.15915,
"h": 301.1
},
"luminance": 0.03615
}Semantic roles & 50–950 ramp
primary
#4B177E
secondary
#78B33E
accent
#EC3C93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F