#9142C4#9142C4
#9142C4 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.2% C 0.198 H 309.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #9142C4 |
|---|---|
| RGB | rgb(145, 66, 196) |
| HSL | hsl(276, 52%, 51%) |
| HSV | hsv(276, 66%, 77%) |
| CMYK | cmyk(26%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(44.09, 55.19, -54.36) |
| CIE-LCH | lch(44.09, 77.47, 315.43°) |
| OKLab | oklab(54.22% 0.1253 -0.1537) |
| OKLCH | oklch(54.22% 0.198 309.2) |
| XYZ | xyz(23.5871, 13.9021, 53.6547) |
| Luminance | 0.1390 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.69
Purply
#983FB2
ΔE00 3.70
Blueviolet
#8A2BE2
ΔE00 5.65
Vibrant Purple
#AD03DE
ΔE00 6.23
Violet (survey)
#9A0EEA
ΔE00 6.58
Barney
#AC1DB8
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9142C4 #75C442
analogous
#5042C4 #9142C4 #C442B6
triadic
#9142C4 #C49142 #42C491
tetradic
#9142C4 #C45042 #75C442 #42B6C4
square
#9142C4 #C45042 #75C442 #42B6C4
split-complementary
#9142C4 #B6C442 #42C450
monochromatic
#4E216A #703099 #9142C4 #AC71D3 #C79FE1
Accessibility & contrast
On white
5.55
#9142C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#9142C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9142C4
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9142C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9142C4 | 1.00 | 5.55 | 3.78 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#2C69C1
Tritanopia (blue-blind)
#8A5D7D
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9142c4; /* rgb */ color: rgb(145, 66, 196); /* oklch */ color: oklch(54.2% 0.198 309.2);
Tailwind
colors: {
custom: {
50: '#b57cd7',
500: '#9142c4',
950: '#000000',
},
}SCSS
$custom: #9142c4; $custom-light: #b57cd7; $custom-dark: #000000;
JSON
{
"hex": "#9142c4",
"rgb": {
"r": 145,
"g": 66,
"b": 196
},
"hsl": {
"h": 276.462,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.54216,
"c": 0.19828,
"h": 309.2
},
"luminance": 0.13902
}Semantic roles & 50–950 ramp
primary
#9142C4
secondary
#ABCE94
accent
#DC4C84
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83