#982172#982172

#982172 is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.1% C 0.174 H 344.2°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#982172
RGBrgb(152, 33, 114)
HSLhsl(319, 64%, 36%)
HSVhsv(319, 78%, 60%)
CMYKcmyk(0%, 78.3%, 25%, 40.4%)
CIE-LABlab(35.95, 55.19, -17.66)
CIE-LCHlch(35.95, 57.95, 342.25°)
OKLaboklab(47.08% 0.167 -0.0471)
OKLCHoklch(47.08% 0.174 344.2)
XYZxyz(16.5307, 8.9798, 16.7790)
Luminance0.0898 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982172 #219847
analogous
#832198 #982172 #982137
triadic
#982172 #729821 #217298
tetradic
#982172 #988321 #219847 #213798
square
#982172 #988321 #219847 #213798
split-complementary
#982172 #379821 #219883
monochromatic
#330B27 #66164C #982172 #CA2C98 #DB59B1

Accessibility & contrast

On white

7.51
#982172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#982172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982172
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982172#FFFFFF#000000##FFFFFF
##9821721.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304874
Deuteranopia (green-blind)
#555C6F
Tritanopia (blue-blind)
#A22047
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #982172;
/* rgb */ color: rgb(152, 33, 114);
/* oklch */ color: oklch(47.1% 0.174 344.2);
Tailwind
colors: {
  custom: {
    50: '#ba6a9a',
    500: '#982172',
    950: '#000000',
  },
}
SCSS
$custom: #982172;
$custom-light: #ba6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#982172",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 319.16,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47084,
    "c": 0.17353,
    "h": 344.2
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#982172
secondary
#56BF77
accent
#E77640
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #982172

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

Preview Lab → · Contrast checker → · Palette generator →

#982172 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva