#5740C2#5740C2
#5740C2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.193 H 284.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).
Color values
| HEX | #5740C2 |
|---|---|
| RGB | rgb(87, 64, 194) |
| HSL | hsl(251, 52%, 51%) |
| HSV | hsv(251, 67%, 76%) |
| CMYK | cmyk(55.2%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(37.09, 44.32, -64.86) |
| CIE-LCH | lch(37.09, 78.55, 304.35°) |
| OKLab | oklab(47.67% 0.0482 -0.1864) |
| OKLCH | oklch(47.67% 0.193 284.5) |
| XYZ | xyz(15.4985, 9.5872, 52.0623) |
| Luminance | 0.0959 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.20
Bluey Purple
#6241C7
ΔE00 1.88
Blurple
#5539CC
ΔE00 2.04
Ocean Blue
#4F42B5
ΔE00 2.35
Purpley Blue
#5F34E7
ΔE00 5.17
Burple
#6832E3
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5740C2 #ABC240
analogous
#406AC2 #5740C2 #9840C2
triadic
#5740C2 #C25740 #40C257
tetradic
#5740C2 #C2406A #ABC240 #40C298
square
#5740C2 #C2406A #ABC240 #40C298
split-complementary
#5740C2 #C29840 #6AC240
monochromatic
#2D2167 #423095 #5740C2 #806ED1 #A99DE0
Accessibility & contrast
On white
7.20
#5740C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#5740C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5740C2
7.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5740C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5740C2 | 1.00 | 7.20 | 2.92 | 7.20 |
| #FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#26617C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #5740c2; /* rgb */ color: rgb(87, 64, 194); /* oklch */ color: oklch(47.7% 0.193 284.5);
Tailwind
colors: {
custom: {
50: '#9176d5',
500: '#5740c2',
950: '#000000',
},
}SCSS
$custom: #5740c2; $custom-light: #9176d5; $custom-dark: #000000;
JSON
{
"hex": "#5740c2",
"rgb": {
"r": 87,
"g": 64,
"b": 194
},
"hsl": {
"h": 250.615,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.47669,
"c": 0.19257,
"h": 284.5
},
"luminance": 0.09588
}Semantic roles & 50–950 ramp
primary
#5740C2
secondary
#C2CC92
accent
#DB4DC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83