#98217E#98217E

#98217E is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.7% C 0.181 H 338.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#98217E
RGBrgb(152, 33, 126)
HSLhsl(313, 64%, 36%)
HSVhsv(313, 78%, 60%)
CMYKcmyk(0%, 78.3%, 17.1%, 40.4%)
CIE-LABlab(36.50, 56.84, -24.32)
CIE-LCHlch(36.50, 61.82, 336.83°)
OKLaboklab(47.67% 0.1688 -0.066)
OKLCHoklch(47.67% 0.181 338.7)
XYZxyz(17.2591, 9.2712, 20.6152)
Luminance0.0927 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98217E #21983B
analogous
#772198 #98217E #982143
triadic
#98217E #7E9821 #217E98
tetradic
#98217E #987721 #21983B #214398
square
#98217E #987721 #21983B #214398
split-complementary
#98217E #439821 #219877
monochromatic
#330B2B #661654 #98217E #CA2CA8 #DB59BE

Accessibility & contrast

On white

7.36
#98217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98217E
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98217E#FFFFFF#000000##FFFFFF
##98217E1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#505C7B
Tritanopia (blue-blind)
#A1274E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98217e;
/* rgb */ color: rgb(152, 33, 126);
/* oklch */ color: oklch(47.7% 0.181 338.7);
Tailwind
colors: {
  custom: {
    50: '#ba6aa3',
    500: '#98217e',
    950: '#000000',
  },
}
SCSS
$custom: #98217e;
$custom-light: #ba6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#98217e",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 313.109,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47667,
    "c": 0.18124,
    "h": 338.7
  },
  "luminance": 0.09269
}

Semantic roles & 50–950 ramp

primary
#98217E
secondary
#56BF6D
accent
#E76540
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #98217E

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

Preview Lab → · Contrast checker → · Palette generator →

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