#98217A#98217A

#98217A is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.5% C 0.179 H 340.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#98217A
RGBrgb(152, 33, 122)
HSLhsl(315, 64%, 36%)
HSVhsv(315, 78%, 60%)
CMYKcmyk(0%, 78.3%, 19.7%, 40.4%)
CIE-LABlab(36.31, 56.27, -22.13)
CIE-LCHlch(36.31, 60.47, 338.54°)
OKLaboklab(47.47% 0.1683 -0.0597)
OKLCHoklch(47.47% 0.179 340.5)
XYZxyz(17.0061, 9.1700, 19.2829)
Luminance0.0917 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98217A #21983F
analogous
#7B2198 #98217A #98213F
triadic
#98217A #7A9821 #217A98
tetradic
#98217A #987B21 #21983F #213F98
square
#98217A #987B21 #21983F #213F98
split-complementary
#98217A #3F9821 #21987B
monochromatic
#330B29 #661652 #98217A #CA2CA2 #DB59BA

Accessibility & contrast

On white

7.41
#98217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#98217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98217A
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98217A#FFFFFF#000000##FFFFFF
##98217A1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497C
Deuteranopia (green-blind)
#525C77
Tritanopia (blue-blind)
#A1254B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #98217a;
/* rgb */ color: rgb(152, 33, 122);
/* oklch */ color: oklch(47.5% 0.179 340.5);
Tailwind
colors: {
  custom: {
    50: '#ba6aa0',
    500: '#98217a',
    950: '#000000',
  },
}
SCSS
$custom: #98217a;
$custom-light: #ba6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#98217a",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 315.126,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47467,
    "c": 0.17858,
    "h": 340.5
  },
  "luminance": 0.09168
}

Semantic roles & 50–950 ramp

primary
#98217A
secondary
#56BF70
accent
#E76B40
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #98217A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#98217A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva