#5A2EFF#5A2EFF
#5A2EFF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.6% C 0.278 H 280.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2EFF |
|---|---|
| RGB | rgb(90, 46, 255) |
| HSL | hsl(253, 100%, 59%) |
| HSV | hsv(253, 82%, 100%) |
| CMYK | cmyk(64.7%, 82%, 0%, 0%) |
| CIE-LAB | lab(40.16, 70.59, -94.66) |
| CIE-LCH | lch(40.16, 118.08, 306.71°) |
| OKLab | oklab(51.62% 0.0487 -0.2732) |
| OKLCH | oklch(51.62% 0.278 280.1) |
| XYZ | xyz(23.2377, 11.3458, 95.5537) |
| Luminance | 0.1135 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purplish Blue
#601EF9
ΔE00 2.28
Purpley Blue
#5F34E7
ΔE00 2.62
Light Royal Blue
#3A2EFE
ΔE00 2.80
Purpleish Blue
#6140EF
ΔE00 3.18
Burple
#6832E3
ΔE00 3.30
Purply Blue
#661AEE
ΔE00 3.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2EFF #D3FF2E
analogous
#2E6AFF #5A2EFF #C32EFF
triadic
#5A2EFF #FF5A2E #2EFF5A
tetradic
#5A2EFF #FF2E6A #D3FF2E #2EFFC3
square
#5A2EFF #FF2E6A #D3FF2E #2EFFC3
split-complementary
#5A2EFF #FFC32E #6AFF2E
monochromatic
#2600B3 #3200F0 #5A2EFF #8A6BFF #BBA8FF
Accessibility & contrast
On white
6.42
#5A2EFF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#5A2EFF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A2EFF
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2EFF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2EFF | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066FF
Deuteranopia (green-blind)
#0057FB
Tritanopia (blue-blind)
#00719A
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5a2eff; /* rgb */ color: rgb(90, 46, 255); /* oklch */ color: oklch(51.6% 0.278 280.1);
Tailwind
colors: {
custom: {
50: '#9e70ff',
500: '#5a2eff',
950: '#000000',
},
}SCSS
$custom: #5a2eff; $custom-light: #9e70ff; $custom-dark: #000000;
JSON
{
"hex": "#5a2eff",
"rgb": {
"r": 90,
"g": 46,
"b": 255
},
"hsl": {
"h": 252.632,
"s": 100,
"l": 59.02
},
"oklch": {
"l": 0.51624,
"c": 0.27755,
"h": 280.1
},
"luminance": 0.11348
}Semantic roles & 50–950 ramp
primary
#5A2EFF
secondary
#DCED9B
accent
#FF29D2
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86