#9A42BC#9A42BC
#9A42BC is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.8% C 0.193 H 315.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #9A42BC |
|---|---|
| RGB | rgb(154, 66, 188) |
| HSL | hsl(283, 48%, 50%) |
| HSV | hsv(283, 65%, 74%) |
| CMYK | cmyk(18.1%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(44.80, 55.50, -48.51) |
| CIE-LCH | lch(44.80, 73.71, 318.85°) |
| OKLab | oklab(54.82% 0.1372 -0.1362) |
| OKLCH | oklch(54.82% 0.193 315.2) |
| XYZ | xyz(24.3503, 14.3981, 49.0636) |
| Luminance | 0.1440 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.81
Darkorchid
#9932CC
ΔE00 3.66
Barney
#AC1DB8
ΔE00 5.08
Medium Purple
#9E43A2
ΔE00 5.18
Ugly Purple
#A442A0
ΔE00 6.25
Vibrant Purple
#AD03DE
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A42BC #64BC42
analogous
#5D42BC #9A42BC #BC42A1
triadic
#9A42BC #BC9A42 #42BC9A
tetradic
#9A42BC #BC5D42 #64BC42 #42A1BC
square
#9A42BC #BC5D42 #64BC42 #42A1BC
split-complementary
#9A42BC #A1BC42 #42BC5D
monochromatic
#502261 #75328F #9A42BC #B26FCC #CA9CDC
Accessibility & contrast
On white
5.41
#9A42BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#9A42BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A42BC
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A42BC | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C65C0
Deuteranopia (green-blind)
#406CB9
Tritanopia (blue-blind)
#975979
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #9a42bc; /* rgb */ color: rgb(154, 66, 188); /* oklch */ color: oklch(54.8% 0.193 315.2);
Tailwind
colors: {
custom: {
50: '#bb7cd1',
500: '#9a42bc',
950: '#000000',
},
}SCSS
$custom: #9a42bc; $custom-light: #bb7cd1; $custom-dark: #000000;
JSON
{
"hex": "#9a42bc",
"rgb": {
"r": 154,
"g": 66,
"b": 188
},
"hsl": {
"h": 283.279,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.54818,
"c": 0.19335,
"h": 315.2
},
"luminance": 0.14397
}Semantic roles & 50–950 ramp
primary
#9A42BC
secondary
#A1C991
accent
#D85076
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82