#511FAB#511FAB
#511FAB is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.9% C 0.201 H 290.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).
Color values
| HEX | #511FAB |
|---|---|
| RGB | rgb(81, 31, 171) |
| HSL | hsl(261, 69%, 40%) |
| HSV | hsv(261, 82%, 67%) |
| CMYK | cmyk(52.6%, 81.9%, 0%, 32.9%) |
| CIE-LAB | lab(28.56, 53.29, -65.23) |
| CIE-LCH | lch(28.56, 84.23, 309.24°) |
| OKLab | oklab(40.86% 0.0709 -0.1875) |
| OKLCH | oklch(40.86% 0.201 290.7) |
| XYZ | xyz(11.2319, 5.6691, 39.0226) |
| Luminance | 0.0567 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.24
Violet Blue
#510AC9
ΔE00 4.01
Purple Blue
#5D21D0
ΔE00 5.30
Ultramarine
#2000B1
ΔE00 6.25
Rebeccapurple
#663399
ΔE00 6.43
True Blue
#010FCC
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511FAB #79AB1F
analogous
#1F33AB #511FAB #971FAB
triadic
#511FAB #AB511F #1FAB51
tetradic
#511FAB #AB1F33 #79AB1F #1FAB97
square
#511FAB #AB1F33 #79AB1F #1FAB97
split-complementary
#511FAB #AB971F #33AB1F
monochromatic
#200C43 #381677 #511FAB #6B2ED9 #9062E3
Accessibility & contrast
On white
9.84
#511FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#511FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511FAB
9.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511FAB | 1.00 | 9.84 | 2.13 | 9.84 |
| #FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#304966
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #511fab; /* rgb */ color: rgb(81, 31, 171); /* oklch */ color: oklch(40.9% 0.201 290.7);
Tailwind
colors: {
custom: {
50: '#8c62c5',
500: '#511fab',
950: '#000000',
},
}SCSS
$custom: #511fab; $custom-light: #8c62c5; $custom-dark: #000000;
JSON
{
"hex": "#511fab",
"rgb": {
"r": 81,
"g": 31,
"b": 171
},
"hsl": {
"h": 261.429,
"s": 69.307,
"l": 39.608
},
"oklch": {
"l": 0.40862,
"c": 0.2005,
"h": 290.7
},
"luminance": 0.0567
}Semantic roles & 50–950 ramp
primary
#511FAB
secondary
#A2C75E
accent
#EC3CAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82