#5C40D0#5C40D0
#5C40D0 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.209 H 284.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5C40D0 |
|---|---|
| RGB | rgb(92, 64, 208) |
| HSL | hsl(252, 61%, 53%) |
| HSV | hsv(252, 69%, 82%) |
| CMYK | cmyk(55.8%, 69.2%, 0%, 18.4%) |
| CIE-LAB | lab(38.72, 49.30, -70.32) |
| CIE-LCH | lch(38.72, 85.88, 305.03°) |
| OKLab | oklab(49.31% 0.0528 -0.2023) |
| OKLCH | oklch(49.31% 0.209 284.6) |
| XYZ | xyz(17.6287, 10.4951, 60.7591) |
| Luminance | 0.1050 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.53
Blurple
#5539CC
ΔE00 2.02
Blue With A Hint Of Purple
#533CC6
ΔE00 2.17
Purpley Blue
#5F34E7
ΔE00 3.42
Burple
#6832E3
ΔE00 3.68
Purpleish Blue
#6140EF
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C40D0 #B4D040
analogous
#406CD0 #5C40D0 #A440D0
triadic
#5C40D0 #D05C40 #40D05C
tetradic
#5C40D0 #D0406C #B4D040 #40D0A4
square
#5C40D0 #D0406C #B4D040 #40D0A4
split-complementary
#5C40D0 #D0A440 #6CD040
monochromatic
#2F1E78 #422AA9 #5C40D0 #8671DC #B0A2E8
Accessibility & contrast
On white
6.78
#5C40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#5C40D0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5C40D0
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C40D0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C40D0 | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FD4
Deuteranopia (green-blind)
#0057CD
Tritanopia (blue-blind)
#246683
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5c40d0; /* rgb */ color: rgb(92, 64, 208); /* oklch */ color: oklch(49.3% 0.209 284.6);
Tailwind
colors: {
custom: {
50: '#9677df',
500: '#5c40d0',
950: '#000000',
},
}SCSS
$custom: #5c40d0; $custom-light: #9677df; $custom-dark: #000000;
JSON
{
"hex": "#5c40d0",
"rgb": {
"r": 92,
"g": 64,
"b": 208
},
"hsl": {
"h": 251.667,
"s": 60.504,
"l": 53.333
},
"oklch": {
"l": 0.49308,
"c": 0.20909,
"h": 284.6
},
"luminance": 0.10496
}Semantic roles & 50–950 ramp
primary
#5C40D0
secondary
#C9D597
accent
#E444C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83