#9642E4#9642E4
#9642E4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.232 H 303.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #9642E4 |
|---|---|
| RGB | rgb(150, 66, 228) |
| HSL | hsl(271, 75%, 58%) |
| HSV | hsv(271, 71%, 89%) |
| CMYK | cmyk(34.2%, 71.1%, 0%, 10.6%) |
| CIE-LAB | lab(46.95, 63.42, -68.07) |
| CIE-LCH | lch(46.95, 93.04, 312.98°) |
| OKLab | oklab(57.09% 0.1277 -0.1938) |
| OKLCH | oklch(57.09% 0.232 303.4) |
| XYZ | xyz(28.5262, 15.9819, 74.9657) |
| Luminance | 0.1598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 4.43
Purpley
#8756E4
ΔE00 4.61
Darkorchid
#9932CC
ΔE00 4.78
Blueviolet
#8A2BE2
ΔE00 4.80
Lightish Purple
#A552E6
ΔE00 4.90
Bright Violet
#AD0AFD
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9642E4 #90E442
analogous
#4542E4 #9642E4 #E442E1
triadic
#9642E4 #E49642 #42E496
tetradic
#9642E4 #E44542 #90E442 #42E1E4
square
#9642E4 #E44542 #90E442 #42E1E4
split-complementary
#9642E4 #E1E442 #42E445
monochromatic
#581596 #781DCC #9642E4 #B478EC #D1ADF3
Accessibility & contrast
On white
5.00
#9642E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#9642E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9642E4
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9642E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9642E4 | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#006FE1
Tritanopia (blue-blind)
#86698F
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #9642e4; /* rgb */ color: rgb(150, 66, 228); /* oklch */ color: oklch(57.1% 0.232 303.4);
Tailwind
colors: {
custom: {
50: '#bb7ded',
500: '#9642e4',
950: '#000000',
},
}SCSS
$custom: #9642e4; $custom-light: #bb7ded; $custom-dark: #000000;
JSON
{
"hex": "#9642e4",
"rgb": {
"r": 150,
"g": 66,
"b": 228
},
"hsl": {
"h": 271.111,
"s": 75,
"l": 57.647
},
"oklch": {
"l": 0.57094,
"c": 0.23209,
"h": 303.4
},
"luminance": 0.15982
}Semantic roles & 50–950 ramp
primary
#9642E4
secondary
#C0E2A0
accent
#F23690
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84