#982171#982171

#982171 is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.0% C 0.173 H 344.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#982171
RGBrgb(152, 33, 113)
HSLhsl(320, 64%, 36%)
HSVhsv(320, 78%, 60%)
CMYKcmyk(0%, 78.3%, 25.7%, 40.4%)
CIE-LABlab(35.90, 55.06, -17.10)
CIE-LCHlch(35.90, 57.66, 342.75°)
OKLaboklab(47.04% 0.1668 -0.0456)
OKLCHoklch(47.04% 0.173 344.7)
XYZxyz(16.4741, 8.9572, 16.4809)
Luminance0.0896 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982171 #219848
analogous
#842198 #982171 #982136
triadic
#982171 #719821 #217198
tetradic
#982171 #988421 #219848 #213698
square
#982171 #988421 #219848 #213698
split-complementary
#982171 #369821 #219884
monochromatic
#330B26 #66164C #982171 #CA2C96 #DB59B0

Accessibility & contrast

On white

7.52
#982171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#982171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982171
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982171#FFFFFF#000000##FFFFFF
##9821711.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304873
Deuteranopia (green-blind)
#555C6E
Tritanopia (blue-blind)
#A21F47
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #982171;
/* rgb */ color: rgb(152, 33, 113);
/* oklch */ color: oklch(47.0% 0.173 344.7);
Tailwind
colors: {
  custom: {
    50: '#ba6a9a',
    500: '#982171',
    950: '#000000',
  },
}
SCSS
$custom: #982171;
$custom-light: #ba6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#982171",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 319.664,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47038,
    "c": 0.17293,
    "h": 344.7
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#982171
secondary
#56BF78
accent
#E77740
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #982171

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

Preview Lab → · Contrast checker → · Palette generator →

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