#5A39F2#5A39F2
#5A39F2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.255 H 280.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #5A39F2 |
|---|---|
| RGB | rgb(90, 57, 242) |
| HSL | hsl(251, 88%, 59%) |
| HSV | hsv(251, 76%, 95%) |
| CMYK | cmyk(62.8%, 76.4%, 0%, 5.1%) |
| CIE-LAB | lab(40.42, 62.39, -86.92) |
| CIE-LCH | lch(40.42, 106.99, 305.67°) |
| OKLab | oklab(51.42% 0.0473 -0.2508) |
| OKLCH | oklch(51.42% 0.255 280.7) |
| XYZ | xyz(21.7015, 11.5090, 85.0650) |
| Luminance | 0.1151 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.61
Purpley Blue
#5F34E7
ΔE00 1.83
Burple
#6832E3
ΔE00 2.78
Bluish Purple
#703BE7
ΔE00 2.96
Light Royal Blue
#3A2EFE
ΔE00 3.26
Purplish Blue
#601EF9
ΔE00 3.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A39F2 #D1F239
analogous
#3974F2 #5A39F2 #B739F2
triadic
#5A39F2 #F25A39 #39F25A
tetradic
#5A39F2 #F23974 #D1F239 #39F2B7
square
#5A39F2 #F23974 #D1F239 #39F2B7
split-complementary
#5A39F2 #F2B739 #74F239
monochromatic
#270BA6 #340FDF #5A39F2 #8A72F6 #BAACFA
Accessibility & contrast
On white
6.36
#5A39F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#5A39F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A39F2
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A39F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A39F2 | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#0058EF
Tritanopia (blue-blind)
#007095
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5a39f2; /* rgb */ color: rgb(90, 57, 242); /* oklch */ color: oklch(51.4% 0.255 280.7);
Tailwind
colors: {
custom: {
50: '#9b74f8',
500: '#5a39f2',
950: '#000000',
},
}SCSS
$custom: #5a39f2; $custom-light: #9b74f8; $custom-dark: #000000;
JSON
{
"hex": "#5a39f2",
"rgb": {
"r": 90,
"g": 57,
"b": 242
},
"hsl": {
"h": 250.703,
"s": 87.678,
"l": 58.627
},
"oklch": {
"l": 0.51419,
"c": 0.25527,
"h": 280.7
},
"luminance": 0.11511
}Semantic roles & 50–950 ramp
primary
#5A39F2
secondary
#DBE89F
accent
#FE2AD8
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85