#5131C9#5131C9
#5131C9 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.218 H 283.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5131C9 |
|---|---|
| RGB | rgb(81, 49, 201) |
| HSL | hsl(253, 61%, 49%) |
| HSV | hsv(253, 76%, 79%) |
| CMYK | cmyk(59.7%, 75.6%, 0%, 21.2%) |
| CIE-LAB | lab(34.32, 53.50, -73.51) |
| CIE-LCH | lch(34.32, 90.92, 306.04°) |
| OKLab | oklab(45.76% 0.0501 -0.2119) |
| OKLCH | oklch(45.76% 0.218 283.3) |
| XYZ | xyz(15.0310, 8.1620, 56.0304) |
| Luminance | 0.0816 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blurple
#5539CC
ΔE00 1.89
Blue With A Hint Of Purple
#533CC6
ΔE00 2.42
Purple Blue
#5D21D0
ΔE00 2.93
Bluey Purple
#6241C7
ΔE00 4.28
Purpley Blue
#5F34E7
ΔE00 4.57
Burple
#6832E3
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5131C9 #A9C931
analogous
#315DC9 #5131C9 #9D31C9
triadic
#5131C9 #C95131 #31C951
tetradic
#5131C9 #C9315D #A9C931 #31C99D
square
#5131C9 #C9315D #A9C931 #31C99D
split-complementary
#5131C9 #C99D31 #5DC931
monochromatic
#291967 #3D2598 #5131C9 #795FD8 #A290E4
Accessibility & contrast
On white
7.98
#5131C9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#5131C9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5131C9
7.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5131C9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5131C9 | 1.00 | 7.98 | 2.63 | 7.98 |
| #FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#004CC6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #5131c9; /* rgb */ color: rgb(81, 49, 201); /* oklch */ color: oklch(45.8% 0.218 283.3);
Tailwind
colors: {
custom: {
50: '#906ddb',
500: '#5131c9',
950: '#000000',
},
}SCSS
$custom: #5131c9; $custom-light: #906ddb; $custom-dark: #000000;
JSON
{
"hex": "#5131c9",
"rgb": {
"r": 81,
"g": 49,
"b": 201
},
"hsl": {
"h": 252.632,
"s": 60.8,
"l": 49.02
},
"oklch": {
"l": 0.45756,
"c": 0.21775,
"h": 283.3
},
"luminance": 0.08163
}Semantic roles & 50–950 ramp
primary
#5131C9
secondary
#C0CF87
accent
#E444C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83