#9A42E4#9A42E4
#9A42E4 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.6% C 0.233 H 304.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #9A42E4 |
|---|---|
| RGB | rgb(154, 66, 228) |
| HSL | hsl(273, 75%, 58%) |
| HSV | hsv(273, 71%, 89%) |
| CMYK | cmyk(32.5%, 71.1%, 0%, 10.6%) |
| CIE-LAB | lab(47.45, 64.16, -67.23) |
| CIE-LCH | lch(47.45, 92.93, 313.66°) |
| OKLab | oklab(57.56% 0.1331 -0.1912) |
| OKLCH | oklch(57.56% 0.233 304.8) |
| XYZ | xyz(29.2751, 16.3680, 75.0008) |
| Luminance | 0.1637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 4.17
Lightish Purple
#A552E6
ΔE00 4.35
Darkorchid
#9932CC
ΔE00 4.82
Bright Violet
#AD0AFD
ΔE00 4.83
Purpley
#8756E4
ΔE00 4.88
Blueviolet
#8A2BE2
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A42E4 #8CE442
analogous
#4942E4 #9A42E4 #E442DD
triadic
#9A42E4 #E49A42 #42E49A
tetradic
#9A42E4 #E44942 #8CE442 #42DDE4
square
#9A42E4 #E44942 #8CE442 #42DDE4
split-complementary
#9A42E4 #DDE442 #42E449
monochromatic
#5B1596 #7C1DCC #9A42E4 #B778EC #D3ADF3
Accessibility & contrast
On white
4.91
#9A42E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#9A42E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A42E4
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A42E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A42E4 | 1.00 | 4.91 | 4.27 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#8C698F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9a42e4; /* rgb */ color: rgb(154, 66, 228); /* oklch */ color: oklch(57.6% 0.233 304.8);
Tailwind
colors: {
custom: {
50: '#bd7eed',
500: '#9a42e4',
950: '#000000',
},
}SCSS
$custom: #9a42e4; $custom-light: #bd7eed; $custom-dark: #000000;
JSON
{
"hex": "#9a42e4",
"rgb": {
"r": 154,
"g": 66,
"b": 228
},
"hsl": {
"h": 272.593,
"s": 75,
"l": 57.647
},
"oklch": {
"l": 0.5756,
"c": 0.23293,
"h": 304.8
},
"luminance": 0.16368
}Semantic roles & 50–950 ramp
primary
#9A42E4
secondary
#BEE2A0
accent
#F2368C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84