#4B2F97#4B2F97
#4B2F97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.160 H 289.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).
Color values
| HEX | #4B2F97 |
|---|---|
| RGB | rgb(75, 47, 151) |
| HSL | hsl(256, 53%, 39%) |
| HSV | hsv(256, 69%, 59%) |
| CMYK | cmyk(50.3%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(28.81, 38.93, -52.72) |
| CIE-LCH | lch(28.81, 65.54, 306.44°) |
| OKLab | oklab(40.32% 0.0538 -0.1512) |
| OKLCH | oklch(40.32% 0.16 289.6) |
| XYZ | xyz(9.5025, 5.7629, 29.8838) |
| Luminance | 0.0576 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.00
Rebeccapurple
#663399
ΔE00 5.18
Blueberry
#464196
ΔE00 5.61
Indigo Blue
#3A18B1
ΔE00 6.09
Ocean Blue
#4F42B5
ΔE00 6.58
Sapphire (survey)
#2138AB
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B2F97 #7B972F
analogous
#2F4797 #4B2F97 #7F2F97
triadic
#4B2F97 #974B2F #2F974B
tetradic
#4B2F97 #972F47 #7B972F #2F977F
square
#4B2F97 #972F47 #7B972F #2F977F
split-complementary
#4B2F97 #977F2F #47972F
monochromatic
#1D123A #342068 #4B2F97 #6340C3 #896ED2
Accessibility & contrast
On white
9.76
#4B2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#4B2F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B2F97
9.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B2F97 | 1.00 | 9.76 | 2.15 | 9.76 |
| #FFFFFF | 9.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#31495F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #4b2f97; /* rgb */ color: rgb(75, 47, 151); /* oklch */ color: oklch(40.3% 0.160 289.6);
Tailwind
colors: {
custom: {
50: '#856ab6',
500: '#4b2f97',
950: '#000000',
},
}SCSS
$custom: #4b2f97; $custom-light: #856ab6; $custom-dark: #000000;
JSON
{
"hex": "#4b2f97",
"rgb": {
"r": 75,
"g": 47,
"b": 151
},
"hsl": {
"h": 256.154,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.40317,
"c": 0.16047,
"h": 289.6
},
"luminance": 0.05763
}Semantic roles & 50–950 ramp
primary
#4B2F97
secondary
#A4B968
accent
#DC4CB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80