#5B2FBC#5B2FBC
#5B2FBC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.204 H 289.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2FBC |
|---|---|
| RGB | rgb(91, 47, 188) |
| HSL | hsl(259, 60%, 46%) |
| HSV | hsv(259, 75%, 74%) |
| CMYK | cmyk(51.6%, 75%, 0%, 26.3%) |
| CIE-LAB | lab(33.75, 52.16, -66.79) |
| CIE-LCH | lch(33.75, 84.74, 307.98°) |
| OKLab | oklab(45.22% 0.0696 -0.1919) |
| OKLCH | oklch(45.22% 0.204 289.9) |
| XYZ | xyz(14.4054, 7.8874, 48.3306) |
| Luminance | 0.0789 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.06
Blurple
#5539CC
ΔE00 3.33
Blue With A Hint Of Purple
#533CC6
ΔE00 3.54
Bluey Purple
#6241C7
ΔE00 4.52
Violet Blue
#510AC9
ΔE00 4.88
Ocean Blue
#4F42B5
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2FBC #90BC2F
analogous
#2F4ABC #5B2FBC #A12FBC
triadic
#5B2FBC #BC5B2F #2FBC5B
tetradic
#5B2FBC #BC2F4A #90BC2F #2FBCA1
square
#5B2FBC #BC2F4A #90BC2F #2FBCA1
split-complementary
#5B2FBC #BCA12F #4ABC2F
monochromatic
#2C175A #43238B #5B2FBC #7C54D4 #A185E0
Accessibility & contrast
On white
8.15
#5B2FBC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#5B2FBC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2FBC
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2FBC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2FBC | 1.00 | 8.15 | 2.58 | 8.15 |
| #FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#385673
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #5b2fbc; /* rgb */ color: rgb(91, 47, 188); /* oklch */ color: oklch(45.2% 0.204 289.9);
Tailwind
colors: {
custom: {
50: '#936cd1',
500: '#5b2fbc',
950: '#000000',
},
}SCSS
$custom: #5b2fbc; $custom-light: #936cd1; $custom-dark: #000000;
JSON
{
"hex": "#5b2fbc",
"rgb": {
"r": 91,
"g": 47,
"b": 188
},
"hsl": {
"h": 258.723,
"s": 60,
"l": 46.078
},
"oklch": {
"l": 0.45222,
"c": 0.20414,
"h": 289.9
},
"luminance": 0.07888
}Semantic roles & 50–950 ramp
primary
#5B2FBC
secondary
#B2CA7D
accent
#E345B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83