#5941C2#5941C2
#5941C2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.191 H 285.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #5941C2 |
|---|---|
| RGB | rgb(89, 65, 194) |
| HSL | hsl(251, 51%, 51%) |
| HSV | hsv(251, 66%, 76%) |
| CMYK | cmyk(54.1%, 66.5%, 0%, 23.9%) |
| CIE-LAB | lab(37.48, 44.09, -64.22) |
| CIE-LCH | lch(37.48, 77.90, 304.47°) |
| OKLab | oklab(47.99% 0.05 -0.1845) |
| OKLCH | oklch(47.99% 0.191 285.2) |
| XYZ | xyz(15.7448, 9.7986, 52.0902) |
| Luminance | 0.0980 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.53
Bluey Purple
#6241C7
ΔE00 1.59
Blurple
#5539CC
ΔE00 2.27
Ocean Blue
#4F42B5
ΔE00 2.48
Purpley Blue
#5F34E7
ΔE00 5.18
Burple
#6832E3
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5941C2 #AAC241
analogous
#4169C2 #5941C2 #9941C2
triadic
#5941C2 #C25941 #41C259
tetradic
#5941C2 #C24169 #AAC241 #41C299
square
#5941C2 #C24169 #AAC241 #41C299
split-complementary
#5941C2 #C29941 #69C241
monochromatic
#2E2167 #433096 #5941C2 #816FD1 #AA9EE0
Accessibility & contrast
On white
7.10
#5941C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#5941C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5941C2
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5941C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5941C2 | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#2C627C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5941c2; /* rgb */ color: rgb(89, 65, 194); /* oklch */ color: oklch(48.0% 0.191 285.2);
Tailwind
colors: {
custom: {
50: '#9277d5',
500: '#5941c2',
950: '#000000',
},
}SCSS
$custom: #5941c2; $custom-light: #9277d5; $custom-dark: #000000;
JSON
{
"hex": "#5941c2",
"rgb": {
"r": 89,
"g": 65,
"b": 194
},
"hsl": {
"h": 251.163,
"s": 51.394,
"l": 50.784
},
"oklch": {
"l": 0.47992,
"c": 0.19116,
"h": 285.2
},
"luminance": 0.09799
}Semantic roles & 50–950 ramp
primary
#5941C2
secondary
#C1CC93
accent
#DB4DC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83