#511CB4#511CB4
#511CB4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.5% C 0.212 H 289.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #511CB4 |
|---|---|
| RGB | rgb(81, 28, 180) |
| HSL | hsl(261, 73%, 41%) |
| HSV | hsv(261, 84%, 71%) |
| CMYK | cmyk(55%, 84.4%, 0%, 29.4%) |
| CIE-LAB | lab(29.09, 56.77, -69.75) |
| CIE-LCH | lch(29.09, 89.93, 309.15°) |
| OKLab | oklab(41.5% 0.0694 -0.2007) |
| OKLCH | oklch(41.5% 0.212 289.1) |
| XYZ | xyz(12.0444, 5.8745, 43.6704) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Violet Blue
#510AC9
ΔE00 2.79
Indigo Blue
#3A18B1
ΔE00 3.02
Purple Blue
#5D21D0
ΔE00 4.32
True Blue
#010FCC
ΔE00 5.87
Ultramarine Blue
#1805DB
ΔE00 5.96
Ultramarine
#2000B1
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511CB4 #7FB41C
analogous
#1C33B4 #511CB4 #9D1CB4
triadic
#511CB4 #B4511C #1CB451
tetradic
#511CB4 #B41C33 #7FB41C #1CB49D
square
#511CB4 #B41C33 #7FB41C #1CB49D
split-complementary
#511CB4 #B49D1C #33B41C
monochromatic
#210C4A #39147F #511CB4 #6C2FDF #9164E7
Accessibility & contrast
On white
9.66
#511CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#511CB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511CB4
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511CB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511CB4 | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#284C6B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #511cb4; /* rgb */ color: rgb(81, 28, 180); /* oklch */ color: oklch(41.5% 0.212 289.1);
Tailwind
colors: {
custom: {
50: '#8e62cc',
500: '#511cb4',
950: '#000000',
},
}SCSS
$custom: #511cb4; $custom-light: #8e62cc; $custom-dark: #000000;
JSON
{
"hex": "#511cb4",
"rgb": {
"r": 81,
"g": 28,
"b": 180
},
"hsl": {
"h": 260.921,
"s": 73.077,
"l": 40.784
},
"oklch": {
"l": 0.41502,
"c": 0.21234,
"h": 289.1
},
"luminance": 0.05875
}Semantic roles & 50–950 ramp
primary
#511CB4
secondary
#A6CC60
accent
#F038B0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0514
muted
#7E7A82