#9A42C8#9A42C8
#9A42C8 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.205 H 311.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #9A42C8 |
|---|---|
| RGB | rgb(154, 66, 200) |
| HSL | hsl(279, 55%, 52%) |
| HSV | hsv(279, 67%, 78%) |
| CMYK | cmyk(23%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(45.55, 58.02, -54.28) |
| CIE-LCH | lch(45.55, 79.45, 316.91°) |
| OKLab | oklab(55.6% 0.1365 -0.1531) |
| OKLCH | oklch(55.6% 0.205 311.7) |
| XYZ | xyz(25.6981, 14.9372, 56.1618) |
| Luminance | 0.1494 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.80
Purply
#983FB2
ΔE00 3.69
Vibrant Purple
#AD03DE
ΔE00 5.52
Barney
#AC1DB8
ΔE00 6.02
Blueviolet
#8A2BE2
ΔE00 6.32
Lightish Purple
#A552E6
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A42C8 #70C842
analogous
#5742C8 #9A42C8 #C842B3
triadic
#9A42C8 #C89A42 #42C89A
tetradic
#9A42C8 #C85742 #70C842 #42B3C8
square
#9A42C8 #C85742 #70C842 #42B3C8
split-complementary
#9A42C8 #B3C842 #42C857
monochromatic
#54206F #782E9F #9A42C8 #B371D6 #CDA1E4
Accessibility & contrast
On white
5.27
#9A42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#9A42C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A42C8
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A42C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A42C8 | 1.00 | 5.27 | 3.99 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#346EC5
Tritanopia (blue-blind)
#945D80
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #9a42c8; /* rgb */ color: rgb(154, 66, 200); /* oklch */ color: oklch(55.6% 0.205 311.7);
Tailwind
colors: {
custom: {
50: '#bc7dd9',
500: '#9a42c8',
950: '#000000',
},
}SCSS
$custom: #9a42c8; $custom-light: #bc7dd9; $custom-dark: #000000;
JSON
{
"hex": "#9a42c8",
"rgb": {
"r": 154,
"g": 66,
"b": 200
},
"hsl": {
"h": 279.403,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.55597,
"c": 0.20517,
"h": 311.7
},
"luminance": 0.14937
}Semantic roles & 50–950 ramp
primary
#9A42C8
secondary
#AAD096
accent
#DE4A7D
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83