#5A2FDB#5A2FDB
#5A2FDB is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.239 H 284.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2FDB |
|---|---|
| RGB | rgb(90, 47, 219) |
| HSL | hsl(255, 70%, 52%) |
| HSV | hsv(255, 79%, 86%) |
| CMYK | cmyk(58.9%, 78.5%, 0%, 14.1%) |
| CIE-LAB | lab(36.59, 60.52, -80.15) |
| CIE-LCH | lch(36.59, 100.43, 307.05°) |
| OKLab | oklab(48.07% 0.0594 -0.231) |
| OKLCH | oklch(48.07% 0.239 284.4) |
| XYZ | xyz(18.0152, 9.3200, 67.8537) |
| Luminance | 0.0932 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 2.16
Burple
#6832E3
ΔE00 2.40
Blurple
#5539CC
ΔE00 2.55
Purple Blue
#5D21D0
ΔE00 2.83
Purply Blue
#661AEE
ΔE00 3.16
Blue With A Hint Of Purple
#533CC6
ΔE00 3.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2FDB #B0DB2F
analogous
#2F5ADB #5A2FDB #B02FDB
triadic
#5A2FDB #DB5A2F #2FDB5A
tetradic
#5A2FDB #DB2F5A #B0DB2F #2FDBB0
square
#5A2FDB #DB2F5A #B0DB2F #2FDBB0
split-complementary
#5A2FDB #DBB02F #5ADB2F
monochromatic
#2E157A #421EAF #5A2FDB #8363E4 #AD97ED
Accessibility & contrast
On white
7.33
#5A2FDB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#5A2FDB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2FDB
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2FDB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2FDB | 1.00 | 7.33 | 2.86 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BE0
Deuteranopia (green-blind)
#0051D8
Tritanopia (blue-blind)
#006285
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #5a2fdb; /* rgb */ color: rgb(90, 47, 219); /* oklch */ color: oklch(48.1% 0.239 284.4);
Tailwind
colors: {
custom: {
50: '#976ee8',
500: '#5a2fdb',
950: '#000000',
},
}SCSS
$custom: #5a2fdb; $custom-light: #976ee8; $custom-dark: #000000;
JSON
{
"hex": "#5a2fdb",
"rgb": {
"r": 90,
"g": 47,
"b": 219
},
"hsl": {
"h": 255,
"s": 70.492,
"l": 52.157
},
"oklch": {
"l": 0.48074,
"c": 0.23853,
"h": 284.4
},
"luminance": 0.09321
}Semantic roles & 50–950 ramp
primary
#5A2FDB
secondary
#C6D88D
accent
#ED3BC1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84