#6040C7#6040C7
#6040C7 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.198 H 287.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #6040C7 |
|---|---|
| RGB | rgb(96, 64, 199) |
| HSL | hsl(254, 55%, 52%) |
| HSV | hsv(254, 68%, 78%) |
| CMYK | cmyk(51.8%, 67.8%, 0%, 22%) |
| CIE-LAB | lab(38.33, 47.31, -65.71) |
| CIE-LCH | lch(38.33, 80.97, 305.75°) |
| OKLab | oklab(48.89% 0.0598 -0.1887) |
| OKLCH | oklch(48.89% 0.198 287.6) |
| XYZ | xyz(16.9630, 10.2763, 55.1115) |
| Luminance | 0.1028 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.40
Blue With A Hint Of Purple
#533CC6
ΔE00 2.16
Blurple
#5539CC
ΔE00 2.30
Ocean Blue
#4F42B5
ΔE00 3.78
Burple
#6832E3
ΔE00 4.28
Purpley Blue
#5F34E7
ΔE00 4.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6040C7 #A7C740
analogous
#4064C7 #6040C7 #A440C7
triadic
#6040C7 #C76040 #40C760
tetradic
#6040C7 #C74064 #A7C740 #40C7A4
square
#6040C7 #C74064 #A7C740 #40C7A4
split-complementary
#6040C7 #C7A440 #64C740
monochromatic
#32206D #482E9C #6040C7 #876FD5 #AF9FE3
Accessibility & contrast
On white
6.87
#6040C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#6040C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6040C7
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6040C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6040C7 | 1.00 | 6.87 | 3.06 | 6.87 |
| #FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DCB
Deuteranopia (green-blind)
#0057C4
Tritanopia (blue-blind)
#39627E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #6040c7; /* rgb */ color: rgb(96, 64, 199); /* oklch */ color: oklch(48.9% 0.198 287.6);
Tailwind
colors: {
custom: {
50: '#9677d9',
500: '#6040c7',
950: '#000000',
},
}SCSS
$custom: #6040c7; $custom-light: #9677d9; $custom-dark: #000000;
JSON
{
"hex": "#6040c7",
"rgb": {
"r": 96,
"g": 64,
"b": 199
},
"hsl": {
"h": 254.222,
"s": 54.656,
"l": 51.569
},
"oklch": {
"l": 0.48891,
"c": 0.19792,
"h": 287.6
},
"luminance": 0.10277
}Semantic roles & 50–950 ramp
primary
#6040C7
secondary
#C1CF94
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83