#5A2FB3#5A2FB3
#5A2FB3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.194 H 291.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2FB3 |
|---|---|
| RGB | rgb(90, 47, 179) |
| HSL | hsl(260, 58%, 44%) |
| HSV | hsv(260, 74%, 70%) |
| CMYK | cmyk(49.7%, 73.7%, 0%, 29.8%) |
| CIE-LAB | lab(32.83, 49.53, -62.96) |
| CIE-LCH | lch(32.83, 80.11, 308.19°) |
| OKLab | oklab(44.31% 0.0703 -0.1807) |
| OKLCH | oklch(44.31% 0.194 291.3) |
| XYZ | xyz(13.3673, 7.4608, 43.3748) |
| Luminance | 0.0746 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.10
Blue With A Hint Of Purple
#533CC6
ΔE00 4.29
Blurple
#5539CC
ΔE00 4.33
Rebeccapurple
#663399
ΔE00 5.16
Ocean Blue
#4F42B5
ΔE00 5.18
Bluey Purple
#6241C7
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2FB3 #88B32F
analogous
#2F46B3 #5A2FB3 #9C2FB3
triadic
#5A2FB3 #B35A2F #2FB35A
tetradic
#5A2FB3 #B32F46 #88B32F #2FB39C
square
#5A2FB3 #B32F46 #88B32F #2FB39C
split-complementary
#5A2FB3 #B39C2F #46B32F
monochromatic
#291652 #422283 #5A2FB3 #794FD1 #9E7FDD
Accessibility & contrast
On white
8.43
#5A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#5A2FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2FB3
8.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2FB3 | 1.00 | 8.43 | 2.49 | 8.43 |
| #FFFFFF | 8.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#3C526E
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #5a2fb3; /* rgb */ color: rgb(90, 47, 179); /* oklch */ color: oklch(44.3% 0.194 291.3);
Tailwind
colors: {
custom: {
50: '#916ccb',
500: '#5a2fb3',
950: '#000000',
},
}SCSS
$custom: #5a2fb3; $custom-light: #916ccb; $custom-dark: #000000;
JSON
{
"hex": "#5a2fb3",
"rgb": {
"r": 90,
"g": 47,
"b": 179
},
"hsl": {
"h": 259.545,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.44307,
"c": 0.19392,
"h": 291.3
},
"luminance": 0.07461
}Semantic roles & 50–950 ramp
primary
#5A2FB3
secondary
#ADC678
accent
#E246AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82