#98227F#98227F
#98227F is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.8% C 0.181 H 338.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #98227F |
|---|---|
| RGB | rgb(152, 34, 127) |
| HSL | hsl(313, 63%, 36%) |
| HSV | hsv(313, 78%, 60%) |
| CMYK | cmyk(0%, 77.6%, 16.4%, 40.4%) |
| CIE-LAB | lab(36.66, 56.68, -24.71) |
| CIE-LCH | lch(36.66, 61.83, 336.45°) |
| OKLab | oklab(47.8% 0.168 -0.067) |
| OKLCH | oklch(47.8% 0.181 338.2) |
| XYZ | xyz(17.3521, 9.3534, 20.9661) |
| Luminance | 0.0935 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.65
Barney Purple
#A00498
ΔE00 5.04
Red Violet
#9E0168
ΔE00 5.54
Darkmagenta
#8B008B
ΔE00 6.05
Light Eggplant
#894585
ΔE00 6.69
Purple
#800080
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#98227F #22983B
analogous
#762298 #98227F #982244
triadic
#98227F #7F9822 #227F98
tetradic
#98227F #987622 #22983B #224498
square
#98227F #987622 #22983B #224498
split-complementary
#98227F #449822 #229876
monochromatic
#340C2B #661755 #98227F #CA2DA9 #DA5ABF
Accessibility & contrast
On white
7.32
#98227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#98227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #98227F
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##98227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##98227F | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#284B81
Deuteranopia (green-blind)
#505D7C
Tritanopia (blue-blind)
#A1284E
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #98227f; /* rgb */ color: rgb(152, 34, 127); /* oklch */ color: oklch(47.8% 0.181 338.2);
Tailwind
colors: {
custom: {
50: '#ba6ba4',
500: '#98227f',
950: '#000000',
},
}SCSS
$custom: #98227f; $custom-light: #ba6ba4; $custom-dark: #000000;
JSON
{
"hex": "#98227f",
"rgb": {
"r": 152,
"g": 34,
"b": 127
},
"hsl": {
"h": 312.712,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.47795,
"c": 0.1809,
"h": 338.2
},
"luminance": 0.09352
}Semantic roles & 50–950 ramp
primary
#98227F
secondary
#57BE6D
accent
#E66441
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F