#5A2FC1#5A2FC1
#5A2FC1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.210 H 288.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2FC1 |
|---|---|
| RGB | rgb(90, 47, 193) |
| HSL | hsl(258, 61%, 47%) |
| HSV | hsv(258, 76%, 76%) |
| CMYK | cmyk(53.4%, 75.6%, 0%, 24.3%) |
| CIE-LAB | lab(34.10, 53.39, -69.16) |
| CIE-LCH | lch(34.10, 87.37, 307.67°) |
| OKLab | oklab(45.58% 0.0668 -0.1989) |
| OKLCH | oklch(45.58% 0.21 288.6) |
| XYZ | xyz(14.8558, 8.0562, 51.2140) |
| Luminance | 0.0806 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.62
Blurple
#5539CC
ΔE00 2.81
Blue With A Hint Of Purple
#533CC6
ΔE00 3.18
Bluey Purple
#6241C7
ΔE00 4.29
Violet Blue
#510AC9
ΔE00 4.75
Burple
#6832E3
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2FC1 #96C12F
analogous
#2F4DC1 #5A2FC1 #A32FC1
triadic
#5A2FC1 #C15A2F #2FC15A
tetradic
#5A2FC1 #C12F4D #96C12F #2FC1A3
square
#5A2FC1 #C12F4D #96C12F #2FC1A3
split-complementary
#5A2FC1 #C1A32F #4DC12F
monochromatic
#2C175F #432390 #5A2FC1 #7D57D6 #A388E2
Accessibility & contrast
On white
8.04
#5A2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#5A2FC1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2FC1
8.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2FC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2FC1 | 1.00 | 8.04 | 2.61 | 8.04 |
| #FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053C5
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#315876
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #5a2fc1; /* rgb */ color: rgb(90, 47, 193); /* oklch */ color: oklch(45.6% 0.210 288.6);
Tailwind
colors: {
custom: {
50: '#936cd5',
500: '#5a2fc1',
950: '#000000',
},
}SCSS
$custom: #5a2fc1; $custom-light: #936cd5; $custom-dark: #000000;
JSON
{
"hex": "#5a2fc1",
"rgb": {
"r": 90,
"g": 47,
"b": 193
},
"hsl": {
"h": 257.671,
"s": 60.833,
"l": 47.059
},
"oklch": {
"l": 0.45584,
"c": 0.2098,
"h": 288.6
},
"luminance": 0.08057
}Semantic roles & 50–950 ramp
primary
#5A2FC1
secondary
#B5CC80
accent
#E444B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83