#5131E6#5131E6
#5131E6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.250 H 279.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #5131E6 |
|---|---|
| RGB | rgb(81, 49, 230) |
| HSL | hsl(251, 78%, 55%) |
| HSV | hsv(251, 79%, 90%) |
| CMYK | cmyk(64.8%, 78.7%, 0%, 9.8%) |
| CIE-LAB | lab(37.22, 61.77, -85.44) |
| CIE-LCH | lch(37.22, 105.43, 305.87°) |
| OKLab | oklab(48.65% 0.0422 -0.2467) |
| OKLCH | oklch(48.65% 0.25 279.7) |
| XYZ | xyz(18.7700, 9.6576, 75.7225) |
| Luminance | 0.0966 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 1.82
Light Royal Blue
#3A2EFE
ΔE00 2.78
Burple
#6832E3
ΔE00 2.81
Purplish Blue
#601EF9
ΔE00 3.22
Blurple
#5539CC
ΔE00 3.25
Purply Blue
#661AEE
ΔE00 3.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5131E6 #C6E631
analogous
#316BE6 #5131E6 #AC31E6
triadic
#5131E6 #E65131 #31E651
tetradic
#5131E6 #E6316B #C6E631 #31E6AC
square
#5131E6 #E6316B #C6E631 #31E6AC
split-complementary
#5131E6 #E6AC31 #6BE631
monochromatic
#27118C #3618C2 #5131E6 #7F68ED #AD9EF3
Accessibility & contrast
On white
7.16
#5131E6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#5131E6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5131E6
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5131E6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5131E6 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EEB
Deuteranopia (green-blind)
#0050E3
Tritanopia (blue-blind)
#00688C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5131e6; /* rgb */ color: rgb(81, 49, 230); /* oklch */ color: oklch(48.6% 0.250 279.7);
Tailwind
colors: {
custom: {
50: '#956fef',
500: '#5131e6',
950: '#000000',
},
}SCSS
$custom: #5131e6; $custom-light: #956fef; $custom-dark: #000000;
JSON
{
"hex": "#5131e6",
"rgb": {
"r": 81,
"g": 49,
"b": 230
},
"hsl": {
"h": 250.608,
"s": 78.355,
"l": 54.706
},
"oklch": {
"l": 0.48646,
"c": 0.25026,
"h": 279.7
},
"luminance": 0.09659
}Semantic roles & 50–950 ramp
primary
#5131E6
secondary
#D2E093
accent
#F533D3
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0817
muted
#7F7B85