#9A2FA2#9A2FA2
#9A2FA2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.194 H 324.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #9A2FA2 |
|---|---|
| RGB | rgb(154, 47, 162) |
| HSL | hsl(296, 55%, 41%) |
| HSV | hsv(296, 71%, 64%) |
| CMYK | cmyk(4.9%, 71%, 0%, 36.5%) |
| CIE-LAB | lab(40.43, 58.38, -40.10) |
| CIE-LCH | lch(40.43, 70.82, 325.52°) |
| OKLab | oklab(51.18% 0.1589 -0.1115) |
| OKLCH | oklch(51.18% 0.194 324.9) |
| XYZ | xyz(20.8640, 11.5130, 35.2987) |
| Luminance | 0.1151 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.42
Purply
#983FB2
ΔE00 3.96
Barney Purple
#A00498
ΔE00 3.97
Barney
#AC1DB8
ΔE00 4.08
Medium Purple
#9E43A2
ΔE00 4.09
Ugly Purple
#A442A0
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A2FA2 #37A22F
analogous
#602FA2 #9A2FA2 #A22F70
triadic
#9A2FA2 #A29A2F #2FA29A
tetradic
#9A2FA2 #A2602F #37A22F #2F70A2
square
#9A2FA2 #A2602F #37A22F #2F70A2
split-complementary
#9A2FA2 #70A22F #2FA260
monochromatic
#401343 #6D2173 #9A2FA2 #C045C9 #D075D7
Accessibility & contrast
On white
6.36
#9A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#9A2FA2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A2FA2
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A2FA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A2FA2 | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1057A5
Deuteranopia (green-blind)
#46649F
Tritanopia (blue-blind)
#9D4265
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #9a2fa2; /* rgb */ color: rgb(154, 47, 162); /* oklch */ color: oklch(51.2% 0.194 324.9);
Tailwind
colors: {
custom: {
50: '#bb72be',
500: '#9a2fa2',
950: '#000000',
},
}SCSS
$custom: #9a2fa2; $custom-light: #bb72be; $custom-dark: #000000;
JSON
{
"hex": "#9a2fa2",
"rgb": {
"r": 154,
"g": 47,
"b": 162
},
"hsl": {
"h": 295.826,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.51182,
"c": 0.19415,
"h": 324.9
},
"luminance": 0.11512
}Semantic roles & 50–950 ramp
primary
#9A2FA2
secondary
#74BF6E
accent
#DE4954
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81