#6040C2#6040C2
#6040C2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.5% C 0.192 H 288.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #6040C2 |
|---|---|
| RGB | rgb(96, 64, 194) |
| HSL | hsl(255, 52%, 51%) |
| HSV | hsv(255, 67%, 76%) |
| CMYK | cmyk(50.5%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(37.93, 45.86, -63.46) |
| CIE-LCH | lch(37.93, 78.30, 305.86°) |
| OKLab | oklab(48.47% 0.0606 -0.182) |
| OKLCH | oklch(48.47% 0.192 288.4) |
| XYZ | xyz(16.3920, 10.0479, 52.1042) |
| Luminance | 0.1005 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.81
Blue With A Hint Of Purple
#533CC6
ΔE00 2.22
Blurple
#5539CC
ΔE00 2.56
Ocean Blue
#4F42B5
ΔE00 3.40
Burple
#6832E3
ΔE00 4.83
Purpley Blue
#5F34E7
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6040C2 #A2C240
analogous
#4061C2 #6040C2 #A140C2
triadic
#6040C2 #C26040 #40C260
tetradic
#6040C2 #C24061 #A2C240 #40C2A1
square
#6040C2 #C24061 #A2C240 #40C2A1
split-complementary
#6040C2 #C2A140 #61C240
monochromatic
#322167 #493095 #6040C2 #876ED1 #AD9DE0
Accessibility & contrast
On white
6.98
#6040C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#6040C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6040C2
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6040C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6040C2 | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#3D607C
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #6040c2; /* rgb */ color: rgb(96, 64, 194); /* oklch */ color: oklch(48.5% 0.192 288.4);
Tailwind
colors: {
custom: {
50: '#9677d5',
500: '#6040c2',
950: '#000000',
},
}SCSS
$custom: #6040c2; $custom-light: #9677d5; $custom-dark: #000000;
JSON
{
"hex": "#6040c2",
"rgb": {
"r": 96,
"g": 64,
"b": 194
},
"hsl": {
"h": 254.769,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.48474,
"c": 0.19186,
"h": 288.4
},
"luminance": 0.10049
}Semantic roles & 50–950 ramp
primary
#6040C2
secondary
#BECC92
accent
#DB4DB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83