#9D1F9C#9D1F9C
#9D1F9C is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.207 H 328.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #9D1F9C |
|---|---|
| RGB | rgb(157, 31, 156) |
| HSL | hsl(300, 67%, 37%) |
| HSV | hsv(300, 80%, 62%) |
| CMYK | cmyk(0%, 80.3%, 0.6%, 38.4%) |
| CIE-LAB | lab(38.81, 63.08, -39.03) |
| CIE-LCH | lch(38.81, 74.18, 328.25°) |
| OKLab | oklab(50.01% 0.1766 -0.1082) |
| OKLCH | oklch(50.01% 0.207 328.5) |
| XYZ | xyz(20.3952, 10.5499, 32.4082) |
| Luminance | 0.1055 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Barney Purple
#A00498
ΔE00 1.77
Warm Purple
#952E8F
ΔE00 2.87
Barney
#AC1DB8
ΔE00 4.81
Darkmagenta
#8B008B
ΔE00 5.16
Medium Purple
#9E43A2
ΔE00 5.80
Purply
#983FB2
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D1F9C #1F9D20
analogous
#5F1F9D #9D1F9C #9D1F5D
triadic
#9D1F9C #9C9D1F #1F9C9D
tetradic
#9D1F9C #9D5F1F #1F9D20 #1F5D9D
square
#9D1F9C #9D5F1F #1F9D20 #1F5D9D
split-complementary
#9D1F9C #5D9D1F #1F9D5F
monochromatic
#370B36 #6A1569 #9D1F9C #D029CF #DE58DD
Accessibility & contrast
On white
6.75
#9D1F9C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#9D1F9C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9D1F9C
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D1F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D1F9C | 1.00 | 6.75 | 3.11 | 6.75 |
| #FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#456199
Tritanopia (blue-blind)
#A2355E
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #9d1f9c; /* rgb */ color: rgb(157, 31, 156); /* oklch */ color: oklch(50.0% 0.207 328.5);
Tailwind
colors: {
custom: {
50: '#be6cba',
500: '#9d1f9c',
950: '#000000',
},
}SCSS
$custom: #9d1f9c; $custom-light: #be6cba; $custom-dark: #000000;
JSON
{
"hex": "#9d1f9c",
"rgb": {
"r": 157,
"g": 31,
"b": 156
},
"hsl": {
"h": 300.476,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.5001,
"c": 0.20715,
"h": 328.5
},
"luminance": 0.10548
}Semantic roles & 50–950 ramp
primary
#9D1F9C
secondary
#56C257
accent
#EA3F3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80