#9A42BE#9A42BE
#9A42BE is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.195 H 314.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #9A42BE |
|---|---|
| RGB | rgb(154, 66, 190) |
| HSL | hsl(283, 49%, 50%) |
| HSV | hsv(283, 65%, 75%) |
| CMYK | cmyk(18.9%, 65.3%, 0%, 25.5%) |
| CIE-LAB | lab(44.92, 55.91, -49.48) |
| CIE-LCH | lch(44.92, 74.66, 318.49°) |
| OKLab | oklab(54.95% 0.1371 -0.1391) |
| OKLCH | oklch(54.95% 0.195 314.6) |
| XYZ | xyz(24.5674, 14.4850, 50.2070) |
| Luminance | 0.1448 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.12
Darkorchid
#9932CC
ΔE00 3.45
Barney
#AC1DB8
ΔE00 5.20
Medium Purple
#9E43A2
ΔE00 5.51
Vibrant Purple
#AD03DE
ΔE00 6.24
Ugly Purple
#A442A0
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A42BE #66BE42
analogous
#5C42BE #9A42BE #BE42A4
triadic
#9A42BE #BE9A42 #42BE9A
tetradic
#9A42BE #BE5C42 #66BE42 #42A4BE
square
#9A42BE #BE5C42 #66BE42 #42A4BE
split-complementary
#9A42BE #A4BE42 #42BE5C
monochromatic
#502263 #753291 #9A42BE #B270CE #CB9DDD
Accessibility & contrast
On white
5.39
#9A42BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#9A42BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A42BE
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A42BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A42BE | 1.00 | 5.39 | 3.90 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0465C2
Deuteranopia (green-blind)
#3E6DBB
Tritanopia (blue-blind)
#975A7A
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #9a42be; /* rgb */ color: rgb(154, 66, 190); /* oklch */ color: oklch(54.9% 0.195 314.6);
Tailwind
colors: {
custom: {
50: '#bb7cd2',
500: '#9a42be',
950: '#000000',
},
}SCSS
$custom: #9a42be; $custom-light: #bb7cd2; $custom-dark: #000000;
JSON
{
"hex": "#9a42be",
"rgb": {
"r": 154,
"g": 66,
"b": 190
},
"hsl": {
"h": 282.581,
"s": 48.819,
"l": 50.196
},
"oklch": {
"l": 0.54945,
"c": 0.19531,
"h": 314.6
},
"luminance": 0.14484
}Semantic roles & 50–950 ramp
primary
#9A42BE
secondary
#A2CA92
accent
#D84F77
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83