#9A1F97#9A1F97
#9A1F97 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.202 H 329.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).
Color values
| HEX | #9A1F97 |
|---|---|
| RGB | rgb(154, 31, 151) |
| HSL | hsl(301, 66%, 36%) |
| HSV | hsv(301, 80%, 60%) |
| CMYK | cmyk(0%, 79.9%, 1.9%, 39.6%) |
| CIE-LAB | lab(38.00, 61.66, -37.33) |
| CIE-LCH | lch(38.00, 72.08, 328.81°) |
| OKLab | oklab(49.24% 0.1736 -0.1034) |
| OKLCH | oklch(49.24% 0.202 329.2) |
| XYZ | xyz(19.4022, 10.0859, 30.1970) |
| Luminance | 0.1008 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Barney Purple
#A00498
ΔE00 1.60
Warm Purple
#952E8F
ΔE00 2.34
Darkmagenta
#8B008B
ΔE00 4.48
Barney
#AC1DB8
ΔE00 5.72
Medium Purple
#9E43A2
ΔE00 6.21
Purple (survey)
#7E1E9C
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A1F97 #1F9A22
analogous
#601F9A #9A1F97 #9A1F5A
triadic
#9A1F97 #979A1F #1F979A
tetradic
#9A1F97 #9A601F #1F9A22 #1F5A9A
square
#9A1F97 #9A601F #1F9A22 #1F5A9A
split-complementary
#9A1F97 #5A9A1F #1F9A60
monochromatic
#340A33 #671565 #9A1F97 #CD29C9 #DD56DA
Accessibility & contrast
On white
6.96
#9A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#9A1F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A1F97
6.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A1F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A1F97 | 1.00 | 6.96 | 3.02 | 6.96 |
| #FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#455F94
Tritanopia (blue-blind)
#A0335B
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #9a1f97; /* rgb */ color: rgb(154, 31, 151); /* oklch */ color: oklch(49.2% 0.202 329.2);
Tailwind
colors: {
custom: {
50: '#bc6bb6',
500: '#9a1f97',
950: '#000000',
},
}SCSS
$custom: #9a1f97; $custom-light: #bc6bb6; $custom-dark: #000000;
JSON
{
"hex": "#9a1f97",
"rgb": {
"r": 154,
"g": 31,
"b": 151
},
"hsl": {
"h": 301.463,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.49237,
"c": 0.20205,
"h": 329.2
},
"luminance": 0.10084
}Semantic roles & 50–950 ramp
primary
#9A1F97
secondary
#54C157
accent
#E9433E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80