#972EA1#972EA1
#972EA1 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.193 H 324.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).
Color values
| HEX | #972EA1 |
|---|---|
| RGB | rgb(151, 46, 161) |
| HSL | hsl(295, 56%, 41%) |
| HSV | hsv(295, 71%, 63%) |
| CMYK | cmyk(6.2%, 71.4%, 0%, 36.9%) |
| CIE-LAB | lab(39.76, 57.89, -40.59) |
| CIE-LCH | lch(39.76, 70.71, 324.96°) |
| OKLab | oklab(50.59% 0.1565 -0.113) |
| OKLCH | oklch(50.59% 0.193 324.2) |
| XYZ | xyz(20.1720, 11.1077, 34.7928) |
| Luminance | 0.1111 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.36
Barney Purple
#A00498
ΔE00 3.87
Purply
#983FB2
ΔE00 4.19
Barney
#AC1DB8
ΔE00 4.46
Medium Purple
#9E43A2
ΔE00 4.60
Ugly Purple
#A442A0
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#972EA1 #38A12E
analogous
#5E2EA1 #972EA1 #A12E71
triadic
#972EA1 #A1972E #2EA197
tetradic
#972EA1 #A15E2E #38A12E #2E71A1
square
#972EA1 #A15E2E #38A12E #2E71A1
split-complementary
#972EA1 #71A12E #2EA15E
monochromatic
#3E1342 #6A2071 #972EA1 #BE43C9 #CE73D7
Accessibility & contrast
On white
6.52
#972EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#972EA1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #972EA1
6.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##972EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##972EA1 | 1.00 | 6.52 | 3.22 | 6.52 |
| #FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0956A4
Deuteranopia (green-blind)
#43629E
Tritanopia (blue-blind)
#9A4264
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #972ea1; /* rgb */ color: rgb(151, 46, 161); /* oklch */ color: oklch(50.6% 0.193 324.2);
Tailwind
colors: {
custom: {
50: '#b971bd',
500: '#972ea1',
950: '#000000',
},
}SCSS
$custom: #972ea1; $custom-light: #b971bd; $custom-dark: #000000;
JSON
{
"hex": "#972ea1",
"rgb": {
"r": 151,
"g": 46,
"b": 161
},
"hsl": {
"h": 294.783,
"s": 55.556,
"l": 40.588
},
"oklch": {
"l": 0.50588,
"c": 0.19307,
"h": 324.2
},
"luminance": 0.11107
}Semantic roles & 50–950 ramp
primary
#972EA1
secondary
#73BE6C
accent
#DF4956
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81