#9F227C#9F227C
#9F227C is a mid, vivid pink. Relative luminance 0.100; OKLCH L 48.8% C 0.183 H 342.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).
Color values
| HEX | #9F227C |
|---|---|
| RGB | rgb(159, 34, 124) |
| HSL | hsl(317, 65%, 38%) |
| HSV | hsv(317, 79%, 62%) |
| CMYK | cmyk(0%, 78.6%, 22%, 37.6%) |
| CIE-LAB | lab(37.79, 57.95, -20.97) |
| CIE-LCH | lch(37.79, 61.63, 340.10°) |
| OKLab | oklab(48.81% 0.1743 -0.0563) |
| OKLCH | oklch(48.81% 0.183 342.1) |
| XYZ | xyz(18.5089, 9.9722, 20.0150) |
| Luminance | 0.0997 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.47
Warm Purple
#952E8F
ΔE00 5.05
Barney Purple
#A00498
ΔE00 6.28
Magenta (survey)
#C20078
ΔE00 7.24
Deep Magenta
#A0025C
ΔE00 7.25
Light Eggplant
#894585
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F227C #229F45
analogous
#83229F #9F227C #9F223D
triadic
#9F227C #7C9F22 #227C9F
tetradic
#9F227C #9F8322 #229F45 #223D9F
square
#9F227C #9F8322 #229F45 #223D9F
split-complementary
#9F227C #3D9F22 #229F83
monochromatic
#3A0C2D #6D1755 #9F227C #D12DA3 #DD5FB9
Accessibility & contrast
On white
7.01
#9F227C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#9F227C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #9F227C
7.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F227C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F227C | 1.00 | 7.01 | 2.99 | 7.01 |
| #FFFFFF | 7.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F4C7E
Deuteranopia (green-blind)
#576079
Tritanopia (blue-blind)
#A9244D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #9f227c; /* rgb */ color: rgb(159, 34, 124); /* oklch */ color: oklch(48.8% 0.183 342.1);
Tailwind
colors: {
custom: {
50: '#bf6ca2',
500: '#9f227c',
950: '#000000',
},
}SCSS
$custom: #9f227c; $custom-light: #bf6ca2; $custom-dark: #000000;
JSON
{
"hex": "#9f227c",
"rgb": {
"r": 159,
"g": 34,
"b": 124
},
"hsl": {
"h": 316.8,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.48807,
"c": 0.18318,
"h": 342.1
},
"luminance": 0.0997
}Semantic roles & 50–950 ramp
primary
#9F227C
secondary
#5BC178
accent
#E86F40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13080F
muted
#827A7F