#5B2AC7#5B2AC7
#5B2AC7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.221 H 288.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2AC7 |
|---|---|
| RGB | rgb(91, 42, 199) |
| HSL | hsl(259, 65%, 47%) |
| HSV | hsv(259, 79%, 78%) |
| CMYK | cmyk(54.3%, 78.9%, 0%, 22%) |
| CIE-LAB | lab(33.99, 57.40, -72.85) |
| CIE-LCH | lch(33.99, 92.75, 308.23°) |
| OKLab | oklab(45.7% 0.07 -0.2096) |
| OKLCH | oklch(45.7% 0.221 288.5) |
| XYZ | xyz(15.4481, 8.0028, 54.7525) |
| Luminance | 0.0800 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 1.53
Blurple
#5539CC
ΔE00 3.22
Blue With A Hint Of Purple
#533CC6
ΔE00 3.85
Violet Blue
#510AC9
ΔE00 3.99
Blue Violet
#5D06E9
ΔE00 4.45
Burple
#6832E3
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2AC7 #96C72A
analogous
#2A48C7 #5B2AC7 #A92AC7
triadic
#5B2AC7 #C75B2A #2AC75B
tetradic
#5B2AC7 #C72A48 #96C72A #2AC7A9
square
#5B2AC7 #C72A48 #96C72A #2AC7A9
split-complementary
#5B2AC7 #C7A92A #48C72A
monochromatic
#2D1562 #441F94 #5B2AC7 #7E53DB #A486E5
Accessibility & contrast
On white
8.07
#5B2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#5B2AC7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2AC7
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2AC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2AC7 | 1.00 | 8.07 | 2.60 | 8.07 |
| #FFFFFF | 8.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#004CC4
Tritanopia (blue-blind)
#2E5879
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #5b2ac7; /* rgb */ color: rgb(91, 42, 199); /* oklch */ color: oklch(45.7% 0.221 288.5);
Tailwind
colors: {
custom: {
50: '#956ad9',
500: '#5b2ac7',
950: '#000000',
},
}SCSS
$custom: #5b2ac7; $custom-light: #956ad9; $custom-dark: #000000;
JSON
{
"hex": "#5b2ac7",
"rgb": {
"r": 91,
"g": 42,
"b": 199
},
"hsl": {
"h": 258.726,
"s": 65.145,
"l": 47.255
},
"oklch": {
"l": 0.45703,
"c": 0.22101,
"h": 288.5
},
"luminance": 0.08004
}Semantic roles & 50–950 ramp
primary
#5B2AC7
secondary
#B6CF7E
accent
#E840B4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83