#9A2F97#9A2F97
#9A2F97 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.5% C 0.185 H 329.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #9A2F97 |
|---|---|
| RGB | rgb(154, 47, 151) |
| HSL | hsl(302, 53%, 39%) |
| HSV | hsv(302, 69%, 60%) |
| CMYK | cmyk(0%, 69.5%, 1.9%, 39.6%) |
| CIE-LAB | lab(39.81, 56.47, -34.45) |
| CIE-LCH | lch(39.81, 66.14, 328.61°) |
| OKLab | oklab(50.54% 0.1588 -0.0951) |
| OKLCH | oklch(50.54% 0.185 329.1) |
| XYZ | xyz(19.9287, 11.1389, 30.3725) |
| Luminance | 0.1114 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 1.55
Barney Purple
#A00498
ΔE00 3.51
Medium Purple
#9E43A2
ΔE00 4.25
Ugly Purple
#A442A0
ΔE00 4.59
Barney
#AC1DB8
ΔE00 5.65
Purply
#983FB2
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A2F97 #2F9A32
analogous
#682F9A #9A2F97 #9A2F62
triadic
#9A2F97 #979A2F #2F979A
tetradic
#9A2F97 #9A682F #2F9A32 #2F629A
square
#9A2F97 #9A682F #2F9A32 #2F629A
split-complementary
#9A2F97 #629A2F #2F9A68
monochromatic
#3C123B #6B2169 #9A2F97 #C541C1 #D370D1
Accessibility & contrast
On white
6.51
#9A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#9A2F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A2F97
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A2F97 | 1.00 | 6.51 | 3.23 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#4C6394
Tritanopia (blue-blind)
#9F3D5F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #9a2f97; /* rgb */ color: rgb(154, 47, 151); /* oklch */ color: oklch(50.5% 0.185 329.1);
Tailwind
colors: {
custom: {
50: '#bb71b6',
500: '#9a2f97',
950: '#000000',
},
}SCSS
$custom: #9a2f97; $custom-light: #bb71b6; $custom-dark: #000000;
JSON
{
"hex": "#9a2f97",
"rgb": {
"r": 154,
"g": 47,
"b": 151
},
"hsl": {
"h": 301.682,
"s": 53.234,
"l": 39.412
},
"oklch": {
"l": 0.50538,
"c": 0.1851,
"h": 329.1
},
"luminance": 0.11137
}Semantic roles & 50–950 ramp
primary
#9A2F97
secondary
#6ABB6C
accent
#DD4F4B
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80