#98217F#98217F

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

Color values

HEX#98217F
RGBrgb(152, 33, 127)
HSLhsl(313, 64%, 36%)
HSVhsv(313, 78%, 60%)
CMYKcmyk(0%, 78.3%, 16.4%, 40.4%)
CIE-LABlab(36.55, 56.98, -24.87)
CIE-LCHlch(36.55, 62.17, 336.42°)
OKLaboklab(47.72% 0.1689 -0.0675)
OKLCHoklch(47.72% 0.182 338.2)
XYZxyz(17.3239, 9.2971, 20.9567)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98217F #21983A
analogous
#762198 #98217F #982144
triadic
#98217F #7F9821 #217F98
tetradic
#98217F #987621 #21983A #214498
square
#98217F #987621 #21983A #214498
split-complementary
#98217F #449821 #219876
monochromatic
#330B2B #661655 #98217F #CA2CA9 #DB59BF

Accessibility & contrast

On white

7.35
#98217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#98217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98217F
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98217F#FFFFFF#000000##FFFFFF
##98217F1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A81
Deuteranopia (green-blind)
#505C7C
Tritanopia (blue-blind)
#A1284E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98217f;
/* rgb */ color: rgb(152, 33, 127);
/* oklch */ color: oklch(47.7% 0.182 338.2);
Tailwind
colors: {
  custom: {
    50: '#ba6aa4',
    500: '#98217f',
    950: '#000000',
  },
}
SCSS
$custom: #98217f;
$custom-light: #ba6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#98217f",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 312.605,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47718,
    "c": 0.18191,
    "h": 338.2
  },
  "luminance": 0.09295
}

Semantic roles & 50–950 ramp

primary
#98217F
secondary
#56BF6C
accent
#E76440
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #98217F

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

Preview Lab → · Contrast checker → · Palette generator →

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