#5A3FC2#5A3FC2
#5A3FC2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.193 H 286.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5A3FC2 |
|---|---|
| RGB | rgb(90, 63, 194) |
| HSL | hsl(252, 52%, 50%) |
| HSV | hsv(252, 68%, 76%) |
| CMYK | cmyk(53.6%, 67.5%, 0%, 23.9%) |
| CIE-LAB | lab(37.16, 45.38, -64.74) |
| CIE-LCH | lch(37.16, 79.06, 305.03°) |
| OKLab | oklab(47.78% 0.0532 -0.186) |
| OKLCH | oklch(47.78% 0.193 286) |
| XYZ | xyz(15.7286, 9.6229, 52.0571) |
| Luminance | 0.0962 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.32
Bluey Purple
#6241C7
ΔE00 1.52
Blurple
#5539CC
ΔE00 1.95
Ocean Blue
#4F42B5
ΔE00 2.73
Purpley Blue
#5F34E7
ΔE00 4.98
Burple
#6832E3
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A3FC2 #A7C23F
analogous
#3F66C2 #5A3FC2 #9B3FC2
triadic
#5A3FC2 #C25A3F #3FC25A
tetradic
#5A3FC2 #C23F66 #A7C23F #3FC29B
square
#5A3FC2 #C23F66 #A7C23F #3FC29B
split-complementary
#5A3FC2 #C29B3F #66C23F
monochromatic
#2F2066 #442F95 #5A3FC2 #826DD1 #AA9CE0
Accessibility & contrast
On white
7.18
#5A3FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#5A3FC2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A3FC2
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A3FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A3FC2 | 1.00 | 7.18 | 2.92 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#2F607B
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #5a3fc2; /* rgb */ color: rgb(90, 63, 194); /* oklch */ color: oklch(47.8% 0.193 286.0);
Tailwind
colors: {
custom: {
50: '#9276d5',
500: '#5a3fc2',
950: '#000000',
},
}SCSS
$custom: #5a3fc2; $custom-light: #9276d5; $custom-dark: #000000;
JSON
{
"hex": "#5a3fc2",
"rgb": {
"r": 90,
"g": 63,
"b": 194
},
"hsl": {
"h": 252.366,
"s": 51.779,
"l": 50.392
},
"oklch": {
"l": 0.47782,
"c": 0.19346,
"h": 286
},
"luminance": 0.09624
}Semantic roles & 50–950 ramp
primary
#5A3FC2
secondary
#C0CC91
accent
#DB4DBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83