#7542C4#7542C4
#7542C4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.192 H 297.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7542C4 |
|---|---|
| RGB | rgb(117, 66, 196) |
| HSL | hsl(264, 52%, 51%) |
| HSV | hsv(264, 66%, 77%) |
| CMYK | cmyk(40.3%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(40.68, 49.31, -60.05) |
| CIE-LCH | lch(40.68, 77.71, 309.39°) |
| OKLab | oklab(51.01% 0.0875 -0.1713) |
| OKLCH | oklch(51.01% 0.192 297.1) |
| XYZ | xyz(19.2456, 11.6635, 53.4512) |
| Luminance | 0.1166 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.38
Bluish Purple
#703BE7
ΔE00 4.81
Burple
#6832E3
ΔE00 5.30
Blueviolet
#8A2BE2
ΔE00 5.50
Blurple
#5539CC
ΔE00 5.69
Blue With A Hint Of Purple
#533CC6
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7542C4 #91C442
analogous
#4250C4 #7542C4 #B642C4
triadic
#7542C4 #C47542 #42C475
tetradic
#7542C4 #C44250 #91C442 #42C4B6
square
#7542C4 #C44250 #91C442 #42C4B6
split-complementary
#7542C4 #C4B642 #50C442
monochromatic
#3E216A #593099 #7542C4 #9771D3 #B99FE1
Accessibility & contrast
On white
6.30
#7542C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#7542C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7542C4
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7542C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7542C4 | 1.00 | 6.30 | 3.33 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#61607D
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7542c4; /* rgb */ color: rgb(117, 66, 196); /* oklch */ color: oklch(51.0% 0.192 297.1);
Tailwind
colors: {
custom: {
50: '#a37ad7',
500: '#7542c4',
950: '#000000',
},
}SCSS
$custom: #7542c4; $custom-light: #a37ad7; $custom-dark: #000000;
JSON
{
"hex": "#7542c4",
"rgb": {
"r": 117,
"g": 66,
"b": 196
},
"hsl": {
"h": 263.538,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.5101,
"c": 0.19239,
"h": 297.1
},
"luminance": 0.11664
}Semantic roles & 50–950 ramp
primary
#7542C4
secondary
#B7CE94
accent
#DC4CA3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83