#4B177F#4B177F
#4B177F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.160 H 300.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #4B177F |
|---|---|
| RGB | rgb(75, 23, 127) |
| HSL | hsl(270, 69%, 29%) |
| HSV | hsv(270, 82%, 50%) |
| CMYK | cmyk(40.9%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(22.45, 44.24, -48.17) |
| CIE-LCH | lch(22.45, 65.40, 312.57°) |
| OKLab | oklab(35.17% 0.082 -0.1377) |
| OKLCH | oklch(35.17% 0.16 300.8) |
| XYZ | xyz(7.0379, 3.6409, 20.4065) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.67
Royal Purple (survey)
#4B006E
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 4.36
Rebeccapurple
#663399
ΔE00 7.88
Indigo Blue
#3A18B1
ΔE00 8.02
Midnight Blue
#191970
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B177F #4B7F17
analogous
#17177F #4B177F #7F177F
triadic
#4B177F #7F4B17 #177F4B
tetradic
#4B177F #7F1717 #4B7F17 #177F7F
square
#4B177F #7F1717 #4B7F17 #177F7F
split-complementary
#4B177F #7F7F17 #177F17
monochromatic
#0F051A #2C0E4B #4B177F #6A20B3 #8836DB
Accessibility & contrast
On white
12.15
#4B177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4B177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B177F
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B177F | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3F344B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4b177f; /* rgb */ color: rgb(75, 23, 127); /* oklch */ color: oklch(35.2% 0.160 300.8);
Tailwind
colors: {
custom: {
50: '#835ba5',
500: '#4b177f',
950: '#000000',
},
}SCSS
$custom: #4b177f; $custom-light: #835ba5; $custom-dark: #000000;
JSON
{
"hex": "#4b177f",
"rgb": {
"r": 75,
"g": 23,
"b": 127
},
"hsl": {
"h": 270,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.35165,
"c": 0.16021,
"h": 300.8
},
"luminance": 0.03641
}Semantic roles & 50–950 ramp
primary
#4B177F
secondary
#79B43E
accent
#EC3C94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F