#98217B#98217B

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

Color values

HEX#98217B
RGBrgb(152, 33, 123)
HSLhsl(315, 64%, 36%)
HSVhsv(315, 78%, 60%)
CMYKcmyk(0%, 78.3%, 19.1%, 40.4%)
CIE-LABlab(36.36, 56.41, -22.68)
CIE-LCHlch(36.36, 60.80, 338.10°)
OKLaboklab(47.52% 0.1684 -0.0613)
OKLCHoklch(47.52% 0.179 340)
XYZxyz(17.0684, 9.1949, 19.6109)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98217B #21983E
analogous
#7A2198 #98217B #982140
triadic
#98217B #7B9821 #217B98
tetradic
#98217B #987A21 #21983E #214098
square
#98217B #987A21 #21983E #214098
split-complementary
#98217B #409821 #21987A
monochromatic
#330B2A #661652 #98217B #CA2CA4 #DB59BB

Accessibility & contrast

On white

7.40
#98217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#98217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98217B
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98217B#FFFFFF#000000##FFFFFF
##98217B1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7D
Deuteranopia (green-blind)
#515C78
Tritanopia (blue-blind)
#A1254C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #98217b;
/* rgb */ color: rgb(152, 33, 123);
/* oklch */ color: oklch(47.5% 0.179 340.0);
Tailwind
colors: {
  custom: {
    50: '#ba6aa1',
    500: '#98217b',
    950: '#000000',
  },
}
SCSS
$custom: #98217b;
$custom-light: #ba6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#98217b",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 314.622,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47516,
    "c": 0.17923,
    "h": 340
  },
  "luminance": 0.09193
}

Semantic roles & 50–950 ramp

primary
#98217B
secondary
#56BF6F
accent
#E76940
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #98217B

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

Preview Lab → · Contrast checker → · Palette generator →

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