#513AB9#513AB9
#513AB9 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.189 H 284.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).
Color values
| HEX | #513AB9 |
|---|---|
| RGB | rgb(81, 58, 185) |
| HSL | hsl(251, 52%, 48%) |
| HSV | hsv(251, 69%, 73%) |
| CMYK | cmyk(56.2%, 68.6%, 0%, 27.5%) |
| CIE-LAB | lab(34.55, 44.00, -63.74) |
| CIE-LCH | lch(34.55, 77.45, 304.62°) |
| OKLab | oklab(45.48% 0.0466 -0.1834) |
| OKLCH | oklch(45.48% 0.189 284.3) |
| XYZ | xyz(13.6607, 8.2774, 46.7674) |
| Luminance | 0.0828 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.90
Ocean Blue
#4F42B5
ΔE00 2.28
Blurple
#5539CC
ΔE00 2.65
Bluey Purple
#6241C7
ΔE00 3.67
Purple Blue
#5D21D0
ΔE00 5.37
Blue Blue
#2242C7
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#513AB9 #A2B93A
analogous
#3A63B9 #513AB9 #903AB9
triadic
#513AB9 #B9513A #3AB951
tetradic
#513AB9 #B93A63 #A2B93A #3AB990
square
#513AB9 #B93A63 #A2B93A #3AB990
split-complementary
#513AB9 #B9903A #63B93A
monochromatic
#281D5C #3D2B8A #513AB9 #7662CE #9F91DC
Accessibility & contrast
On white
7.91
#513AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#513AB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #513AB9
7.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##513AB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##513AB9 | 1.00 | 7.91 | 2.66 | 7.91 |
| #FFFFFF | 7.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#1E5B75
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #513ab9; /* rgb */ color: rgb(81, 58, 185); /* oklch */ color: oklch(45.5% 0.189 284.3);
Tailwind
colors: {
custom: {
50: '#8c72cf',
500: '#513ab9',
950: '#000000',
},
}SCSS
$custom: #513ab9; $custom-light: #8c72cf; $custom-dark: #000000;
JSON
{
"hex": "#513ab9",
"rgb": {
"r": 81,
"g": 58,
"b": 185
},
"hsl": {
"h": 250.866,
"s": 52.263,
"l": 47.647
},
"oklch": {
"l": 0.45479,
"c": 0.18918,
"h": 284.3
},
"luminance": 0.08278
}Semantic roles & 50–950 ramp
primary
#513AB9
secondary
#BCC787
accent
#DC4CC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82