#98217D#98217D

#98217D is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.6% C 0.181 H 339.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#98217D
RGBrgb(152, 33, 125)
HSLhsl(314, 64%, 36%)
HSVhsv(314, 78%, 60%)
CMYKcmyk(0%, 78.3%, 17.8%, 40.4%)
CIE-LABlab(36.45, 56.70, -23.78)
CIE-LCHlch(36.45, 61.48, 337.25°)
OKLaboklab(47.62% 0.1687 -0.0644)
OKLCHoklch(47.62% 0.181 339.1)
XYZxyz(17.1949, 9.2455, 20.2771)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98217D #21983C
analogous
#782198 #98217D #982142
triadic
#98217D #7D9821 #217D98
tetradic
#98217D #987821 #21983C #214298
square
#98217D #987821 #21983C #214298
split-complementary
#98217D #429821 #219878
monochromatic
#330B2A #661654 #98217D #CA2CA6 #DB59BD

Accessibility & contrast

On white

7.37
#98217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#98217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98217D
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98217D#FFFFFF#000000##FFFFFF
##98217D1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#515C7A
Tritanopia (blue-blind)
#A1264D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98217d;
/* rgb */ color: rgb(152, 33, 125);
/* oklch */ color: oklch(47.6% 0.181 339.1);
Tailwind
colors: {
  custom: {
    50: '#ba6aa3',
    500: '#98217d',
    950: '#000000',
  },
}
SCSS
$custom: #98217d;
$custom-light: #ba6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#98217d",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 313.613,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47616,
    "c": 0.18056,
    "h": 339.1
  },
  "luminance": 0.09244
}

Semantic roles & 50–950 ramp

primary
#98217D
secondary
#56BF6E
accent
#E76640
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #98217D

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

Preview Lab → · Contrast checker → · Palette generator →

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