#4B2F7D#4B2F7D
#4B2F7D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.127 H 296.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #4B2F7D |
|---|---|
| RGB | rgb(75, 47, 125) |
| HSL | hsl(262, 45%, 34%) |
| HSV | hsv(262, 62%, 49%) |
| CMYK | cmyk(40%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(26.76, 31.27, -39.89) |
| CIE-LCH | lch(26.76, 50.69, 308.09°) |
| OKLab | oklab(38.2% 0.0565 -0.1135) |
| OKLCH | oklch(38.2% 0.127 296.5) |
| XYZ | xyz(7.6189, 5.0094, 19.9636) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.93
Rebeccapurple
#663399
ΔE00 6.31
Blueberry
#464196
ΔE00 7.03
Indigo
#4B0082
ΔE00 8.20
Royal Purple (survey)
#4B006E
ΔE00 8.66
Midnight Blue
#191970
ΔE00 8.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B2F7D #617D2F
analogous
#2F3A7D #4B2F7D #722F7D
triadic
#4B2F7D #7D4B2F #2F7D4B
tetradic
#4B2F7D #7D2F3A #617D2F #2F7D72
square
#4B2F7D #7D2F3A #617D2F #2F7D72
split-complementary
#4B2F7D #7D722F #3A7D2F
monochromatic
#160E24 #301E51 #4B2F7D #6640A9 #8562C4
Accessibility & contrast
On white
10.49
#4B2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#4B2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B2F7D
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B2F7D | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#3F4051
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4b2f7d; /* rgb */ color: rgb(75, 47, 125); /* oklch */ color: oklch(38.2% 0.127 296.5);
Tailwind
colors: {
custom: {
50: '#8169a3',
500: '#4b2f7d',
950: '#000000',
},
}SCSS
$custom: #4b2f7d; $custom-light: #8169a3; $custom-dark: #000000;
JSON
{
"hex": "#4b2f7d",
"rgb": {
"r": 75,
"g": 47,
"b": 125
},
"hsl": {
"h": 261.538,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.38195,
"c": 0.12674,
"h": 296.5
},
"luminance": 0.0501
}Semantic roles & 50–950 ramp
primary
#4B2F7D
secondary
#8FAB5D
accent
#D553A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F