#5741C2#5741C2
#5741C2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.191 H 284.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #5741C2 |
|---|---|
| RGB | rgb(87, 65, 194) |
| HSL | hsl(250, 51%, 51%) |
| HSV | hsv(250, 66%, 76%) |
| CMYK | cmyk(55.2%, 66.5%, 0%, 23.9%) |
| CIE-LAB | lab(37.30, 43.75, -64.52) |
| CIE-LCH | lch(37.30, 77.95, 304.14°) |
| OKLab | oklab(47.82% 0.0473 -0.1854) |
| OKLCH | oklch(47.82% 0.191 284.3) |
| XYZ | xyz(15.5554, 9.7010, 52.0813) |
| Luminance | 0.0970 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.40
Bluey Purple
#6241C7
ΔE00 1.88
Blurple
#5539CC
ΔE00 2.23
Ocean Blue
#4F42B5
ΔE00 2.29
Purpley Blue
#5F34E7
ΔE00 5.26
Burple
#6832E3
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5741C2 #ACC241
analogous
#416BC2 #5741C2 #9841C2
triadic
#5741C2 #C25741 #41C257
tetradic
#5741C2 #C2416B #ACC241 #41C298
square
#5741C2 #C2416B #ACC241 #41C298
split-complementary
#5741C2 #C29841 #6BC241
monochromatic
#2D2167 #413096 #5741C2 #806FD1 #A99EE0
Accessibility & contrast
On white
7.14
#5741C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#5741C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5741C2
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5741C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5741C2 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#26627C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5741c2; /* rgb */ color: rgb(87, 65, 194); /* oklch */ color: oklch(47.8% 0.191 284.3);
Tailwind
colors: {
custom: {
50: '#9177d5',
500: '#5741c2',
950: '#000000',
},
}SCSS
$custom: #5741c2; $custom-light: #9177d5; $custom-dark: #000000;
JSON
{
"hex": "#5741c2",
"rgb": {
"r": 87,
"g": 65,
"b": 194
},
"hsl": {
"h": 250.233,
"s": 51.394,
"l": 50.784
},
"oklch": {
"l": 0.4782,
"c": 0.19137,
"h": 284.3
},
"luminance": 0.09702
}Semantic roles & 50–950 ramp
primary
#5741C2
secondary
#C2CC93
accent
#DB4DC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83