#972799#972799
#972799 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.194 H 327.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #972799 |
|---|---|
| RGB | rgb(151, 39, 153) |
| HSL | hsl(299, 59%, 38%) |
| HSV | hsv(299, 75%, 60%) |
| CMYK | cmyk(1.3%, 74.5%, 0%, 40%) |
| CIE-LAB | lab(38.43, 58.95, -37.88) |
| CIE-LCH | lch(38.43, 70.07, 327.27°) |
| OKLab | oklab(49.49% 0.1635 -0.1051) |
| OKLCH | oklch(49.49% 0.194 327.3) |
| XYZ | xyz(19.2375, 10.3316, 31.1118) |
| Luminance | 0.1033 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.18
Barney Purple
#A00498
ΔE00 2.55
Darkmagenta
#8B008B
ΔE00 4.93
Barney
#AC1DB8
ΔE00 5.49
Medium Purple
#9E43A2
ΔE00 5.55
Purply
#983FB2
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#972799 #299927
analogous
#5E2799 #972799 #992762
triadic
#972799 #999727 #279997
tetradic
#972799 #995E27 #299927 #276299
square
#972799 #995E27 #299927 #276299
split-complementary
#972799 #629927 #27995E
monochromatic
#370E37 #671B68 #972799 #C733CA #D563D7
Accessibility & contrast
On white
6.85
#972799 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#972799 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #972799
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##972799 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##972799 | 1.00 | 6.85 | 3.07 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B519C
Deuteranopia (green-blind)
#445F96
Tritanopia (blue-blind)
#9B3A5E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #972799; /* rgb */ color: rgb(151, 39, 153); /* oklch */ color: oklch(49.5% 0.194 327.3);
Tailwind
colors: {
custom: {
50: '#b96eb7',
500: '#972799',
950: '#000000',
},
}SCSS
$custom: #972799; $custom-light: #b96eb7; $custom-dark: #000000;
JSON
{
"hex": "#972799",
"rgb": {
"r": 151,
"g": 39,
"b": 153
},
"hsl": {
"h": 298.947,
"s": 59.375,
"l": 37.647
},
"oklch": {
"l": 0.49486,
"c": 0.19438,
"h": 327.3
},
"luminance": 0.1033
}Semantic roles & 50–950 ramp
primary
#972799
secondary
#61BD5F
accent
#E34548
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80