#5B2ED3#5B2ED3
#5B2ED3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.231 H 286.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2ED3 |
|---|---|
| RGB | rgb(91, 46, 211) |
| HSL | hsl(256, 65%, 50%) |
| HSV | hsv(256, 78%, 83%) |
| CMYK | cmyk(56.9%, 78.2%, 0%, 17.3%) |
| CIE-LAB | lab(35.75, 58.89, -76.92) |
| CIE-LCH | lch(35.75, 96.88, 307.44°) |
| OKLab | oklab(47.28% 0.0638 -0.2215) |
| OKLCH | oklch(47.28% 0.231 286.1) |
| XYZ | xyz(17.0457, 8.8803, 62.4313) |
| Luminance | 0.0888 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.10
Blurple
#5539CC
ΔE00 2.34
Burple
#6832E3
ΔE00 3.09
Purpley Blue
#5F34E7
ΔE00 3.12
Blue With A Hint Of Purple
#533CC6
ΔE00 3.31
Purply Blue
#661AEE
ΔE00 3.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2ED3 #A6D32E
analogous
#2E53D3 #5B2ED3 #AE2ED3
triadic
#5B2ED3 #D35B2E #2ED35B
tetradic
#5B2ED3 #D32E53 #A6D32E #2ED3AE
square
#5B2ED3 #D32E53 #A6D32E #2ED3AE
split-complementary
#5B2ED3 #D3AE2E #53D32E
monochromatic
#2F176F #4522A2 #5B2ED3 #8361DE #AA93E8
Accessibility & contrast
On white
7.56
#5B2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#5B2ED3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2ED3
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2ED3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2ED3 | 1.00 | 7.56 | 2.78 | 7.56 |
| #FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#1E5F80
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #5b2ed3; /* rgb */ color: rgb(91, 46, 211); /* oklch */ color: oklch(47.3% 0.231 286.1);
Tailwind
colors: {
custom: {
50: '#976de2',
500: '#5b2ed3',
950: '#000000',
},
}SCSS
$custom: #5b2ed3; $custom-light: #976de2; $custom-dark: #000000;
JSON
{
"hex": "#5b2ed3",
"rgb": {
"r": 91,
"g": 46,
"b": 211
},
"hsl": {
"h": 256.364,
"s": 65.217,
"l": 50.392
},
"oklch": {
"l": 0.47278,
"c": 0.23056,
"h": 286.1
},
"luminance": 0.08881
}Semantic roles & 50–950 ramp
primary
#5B2ED3
secondary
#BFD38A
accent
#E840BA
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84