#5131C2#5131C2
#5131C2 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.210 H 284.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5131C2 |
|---|---|
| RGB | rgb(81, 49, 194) |
| HSL | hsl(253, 60%, 48%) |
| HSV | hsv(253, 75%, 76%) |
| CMYK | cmyk(58.2%, 74.7%, 0%, 23.9%) |
| CIE-LAB | lab(33.65, 51.48, -70.52) |
| CIE-LCH | lch(33.65, 87.31, 306.13°) |
| OKLab | oklab(45.08% 0.0518 -0.2032) |
| OKLCH | oklch(45.08% 0.21 284.3) |
| XYZ | xyz(14.2263, 7.8401, 51.7921) |
| Luminance | 0.0784 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blurple
#5539CC
ΔE00 2.39
Blue With A Hint Of Purple
#533CC6
ΔE00 2.59
Purple Blue
#5D21D0
ΔE00 3.25
Bluey Purple
#6241C7
ΔE00 4.48
Ocean Blue
#4F42B5
ΔE00 4.51
Violet Blue
#510AC9
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5131C2 #A2C231
analogous
#315AC2 #5131C2 #9931C2
triadic
#5131C2 #C25131 #31C251
tetradic
#5131C2 #C2315A #A2C231 #31C299
square
#5131C2 #C2315A #A2C231 #31C299
split-complementary
#5131C2 #C29931 #5AC231
monochromatic
#281860 #3D2591 #5131C2 #765BD6 #9F8CE2
Accessibility & contrast
On white
8.18
#5131C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#5131C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5131C2
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5131C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5131C2 | 1.00 | 8.18 | 2.57 | 8.18 |
| #FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#0E5A77
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #5131c2; /* rgb */ color: rgb(81, 49, 194); /* oklch */ color: oklch(45.1% 0.210 284.3);
Tailwind
colors: {
custom: {
50: '#8f6dd6',
500: '#5131c2',
950: '#000000',
},
}SCSS
$custom: #5131c2; $custom-light: #8f6dd6; $custom-dark: #000000;
JSON
{
"hex": "#5131c2",
"rgb": {
"r": 81,
"g": 49,
"b": 194
},
"hsl": {
"h": 253.241,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.45083,
"c": 0.20968,
"h": 284.3
},
"luminance": 0.07841
}Semantic roles & 50–950 ramp
primary
#5131C2
secondary
#BCCC83
accent
#E345C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83