#5940C9#5940C9
#5940C9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.4% C 0.201 H 284.4°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).
Color values
| HEX | #5940C9 |
|---|---|
| RGB | rgb(89, 64, 201) |
| HSL | hsl(251, 56%, 52%) |
| HSV | hsv(251, 68%, 79%) |
| CMYK | cmyk(55.7%, 68.2%, 0%, 21.2%) |
| CIE-LAB | lab(37.85, 46.75, -67.68) |
| CIE-LCH | lch(37.85, 82.26, 304.63°) |
| OKLab | oklab(48.44% 0.0499 -0.1947) |
| OKLCH | oklch(48.44% 0.201 284.4) |
| XYZ | xyz(16.4926, 10.0067, 56.3094) |
| Luminance | 0.1001 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.37
Bluey Purple
#6241C7
ΔE00 1.44
Blurple
#5539CC
ΔE00 1.71
Ocean Blue
#4F42B5
ΔE00 3.29
Purpley Blue
#5F34E7
ΔE00 4.26
Burple
#6832E3
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5940C9 #B0C940
analogous
#406CC9 #5940C9 #9E40C9
triadic
#5940C9 #C95940 #40C959
tetradic
#5940C9 #C9406C #B0C940 #40C99E
square
#5940C9 #C9406C #B0C940 #40C99E
split-complementary
#5940C9 #C99E40 #6CC940
monochromatic
#2E1F6F #422D9F #5940C9 #8270D6 #AC9FE4
Accessibility & contrast
On white
7.00
#5940C9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
3.00
#5940C9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5940C9
7.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5940C9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5940C9 | 1.00 | 7.00 | 3.00 | 7.00 |
| #FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#23637F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5940c9; /* rgb */ color: rgb(89, 64, 201); /* oklch */ color: oklch(48.4% 0.201 284.4);
Tailwind
colors: {
custom: {
50: '#9377da',
500: '#5940c9',
950: '#000000',
},
}SCSS
$custom: #5940c9; $custom-light: #9377da; $custom-dark: #000000;
JSON
{
"hex": "#5940c9",
"rgb": {
"r": 89,
"g": 64,
"b": 201
},
"hsl": {
"h": 250.949,
"s": 55.918,
"l": 51.961
},
"oklch": {
"l": 0.48442,
"c": 0.20096,
"h": 284.4
},
"luminance": 0.10008
}Semantic roles & 50–950 ramp
primary
#5940C9
secondary
#C5D094
accent
#DF49C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83