#4B187F#4B187F
#4B187F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.159 H 300.6°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #4B187F |
|---|---|
| RGB | rgb(75, 24, 127) |
| HSL | hsl(270, 68%, 30%) |
| HSV | hsv(270, 81%, 50%) |
| CMYK | cmyk(40.9%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(22.59, 43.83, -47.93) |
| CIE-LCH | lch(22.59, 64.95, 312.44°) |
| OKLab | oklab(35.26% 0.0811 -0.137) |
| OKLCH | oklch(35.26% 0.159 300.6) |
| XYZ | xyz(7.0581, 3.6814, 20.4133) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.83
Royal Purple (survey)
#4B006E
ΔE00 4.16
Indigo (survey)
#380282
ΔE00 4.47
Rebeccapurple
#663399
ΔE00 7.78
Indigo Blue
#3A18B1
ΔE00 8.02
Midnight Blue
#191970
ΔE00 8.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B187F #4C7F18
analogous
#18187F #4B187F #7F187F
triadic
#4B187F #7F4B18 #187F4B
tetradic
#4B187F #7F1818 #4C7F18 #187F7F
square
#4B187F #7F1818 #4C7F18 #187F7F
split-complementary
#4B187F #7F7F18 #187F18
monochromatic
#0F051A #2D0E4C #4B187F #6922B2 #8838D9
Accessibility & contrast
On white
12.10
#4B187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#4B187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B187F
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B187F | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3F344B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4b187f; /* rgb */ color: rgb(75, 24, 127); /* oklch */ color: oklch(35.3% 0.159 300.6);
Tailwind
colors: {
custom: {
50: '#835ca5',
500: '#4b187f',
950: '#000000',
},
}SCSS
$custom: #4b187f; $custom-light: #835ca5; $custom-dark: #000000;
JSON
{
"hex": "#4b187f",
"rgb": {
"r": 75,
"g": 24,
"b": 127
},
"hsl": {
"h": 269.709,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.35264,
"c": 0.15921,
"h": 300.6
},
"luminance": 0.03681
}Semantic roles & 50–950 ramp
primary
#4B187F
secondary
#7AB33F
accent
#EB3D95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F