#9042C7#9042C7
#9042C7 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.201 H 308.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #9042C7 |
|---|---|
| RGB | rgb(144, 66, 199) |
| HSL | hsl(275, 54%, 52%) |
| HSV | hsv(275, 67%, 78%) |
| CMYK | cmyk(27.6%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(44.16, 55.64, -56.00) |
| CIE-LCH | lch(44.16, 78.95, 314.82°) |
| OKLab | oklab(54.3% 0.1237 -0.1585) |
| OKLCH | oklch(54.3% 0.201 308) |
| XYZ | xyz(23.7565, 13.9496, 55.4628) |
| Luminance | 0.1395 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.67
Purply
#983FB2
ΔE00 4.25
Blueviolet
#8A2BE2
ΔE00 5.23
Vibrant Purple
#AD03DE
ΔE00 6.17
Violet (survey)
#9A0EEA
ΔE00 6.27
Darkviolet
#9400D3
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9042C7 #79C742
analogous
#4E42C7 #9042C7 #C742BC
triadic
#9042C7 #C79042 #42C790
tetradic
#9042C7 #C74E42 #79C742 #42BCC7
square
#9042C7 #C74E42 #79C742 #42BCC7
split-complementary
#9042C7 #BCC742 #42C74E
monochromatic
#4E216E #6F2F9D #9042C7 #AC71D5 #C7A0E3
Accessibility & contrast
On white
5.54
#9042C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#9042C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9042C7
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9042C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9042C7 | 1.00 | 5.54 | 3.79 | 5.54 |
| #FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#875E7F
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9042c7; /* rgb */ color: rgb(144, 66, 199); /* oklch */ color: oklch(54.3% 0.201 308.0);
Tailwind
colors: {
custom: {
50: '#b57cd9',
500: '#9042c7',
950: '#000000',
},
}SCSS
$custom: #9042c7; $custom-light: #b57cd9; $custom-dark: #000000;
JSON
{
"hex": "#9042c7",
"rgb": {
"r": 144,
"g": 66,
"b": 199
},
"hsl": {
"h": 275.188,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.543,
"c": 0.20108,
"h": 308
},
"luminance": 0.13949
}Semantic roles & 50–950 ramp
primary
#9042C7
secondary
#ADD095
accent
#DE4A87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A15
muted
#817C83