#5B2CD2#5B2CD2
#5B2CD2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.231 H 286.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2CD2 |
|---|---|
| RGB | rgb(91, 44, 210) |
| HSL | hsl(257, 65%, 50%) |
| HSV | hsv(257, 79%, 82%) |
| CMYK | cmyk(56.7%, 79%, 0%, 17.6%) |
| CIE-LAB | lab(35.36, 59.49, -77.00) |
| CIE-LCH | lch(35.36, 97.30, 307.69°) |
| OKLab | oklab(46.97% 0.0654 -0.2217) |
| OKLCH | oklch(46.97% 0.231 286.4) |
| XYZ | xyz(16.8444, 8.6777, 61.7476) |
| Luminance | 0.0868 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 1.71
Blurple
#5539CC
ΔE00 2.62
Burple
#6832E3
ΔE00 3.37
Purpley Blue
#5F34E7
ΔE00 3.44
Blue With A Hint Of Purple
#533CC6
ΔE00 3.55
Purply Blue
#661AEE
ΔE00 3.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2CD2 #A3D22C
analogous
#2C50D2 #5B2CD2 #AE2CD2
triadic
#5B2CD2 #D25B2C #2CD25B
tetradic
#5B2CD2 #D22C50 #A3D22C #2CD2AE
square
#5B2CD2 #D22C50 #A3D22C #2CD2AE
split-complementary
#5B2CD2 #D2AE2C #50D22C
monochromatic
#2F176D #45219F #5B2CD2 #825EDD #A991E8
Accessibility & contrast
On white
7.68
#5B2CD2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#5B2CD2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2CD2
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2CD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2CD2 | 1.00 | 7.68 | 2.74 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057D7
Deuteranopia (green-blind)
#004ECF
Tritanopia (blue-blind)
#205D7F
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #5b2cd2; /* rgb */ color: rgb(91, 44, 210); /* oklch */ color: oklch(47.0% 0.231 286.4);
Tailwind
colors: {
custom: {
50: '#976ce1',
500: '#5b2cd2',
950: '#000000',
},
}SCSS
$custom: #5b2cd2; $custom-light: #976ce1; $custom-dark: #000000;
JSON
{
"hex": "#5b2cd2",
"rgb": {
"r": 91,
"g": 44,
"b": 210
},
"hsl": {
"h": 256.988,
"s": 65.354,
"l": 49.804
},
"oklch": {
"l": 0.46974,
"c": 0.23118,
"h": 286.4
},
"luminance": 0.08679
}Semantic roles & 50–950 ramp
primary
#5B2CD2
secondary
#BDD287
accent
#E83FB9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0715
muted
#7F7A84