#982771#982771

#982771 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.5% C 0.166 H 345.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#982771
RGBrgb(152, 39, 113)
HSLhsl(321, 59%, 37%)
HSVhsv(321, 74%, 60%)
CMYKcmyk(0%, 74.3%, 25.7%, 40.4%)
CIE-LABlab(36.59, 53.10, -16.04)
CIE-LCHlch(36.59, 55.47, 343.19°)
OKLaboklab(47.54% 0.1607 -0.0426)
OKLCHoklch(47.54% 0.166 345.1)
XYZxyz(16.6557, 9.3205, 16.5415)
Luminance0.0932 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982771 #27984E
analogous
#862798 #982771 #982739
triadic
#982771 #719827 #277198
tetradic
#982771 #988627 #27984E #273998
square
#982771 #988627 #27984E #273998
split-complementary
#982771 #399827 #279886
monochromatic
#370E29 #671B4D #982771 #C93395 #D763AF

Accessibility & contrast

On white

7.33
#982771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#982771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982771
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982771#FFFFFF#000000##FFFFFF
##9827711.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A22548
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #982771;
/* rgb */ color: rgb(152, 39, 113);
/* oklch */ color: oklch(47.5% 0.166 345.1);
Tailwind
colors: {
  custom: {
    50: '#ba6c9a',
    500: '#982771',
    950: '#000000',
  },
}
SCSS
$custom: #982771;
$custom-light: #ba6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#982771",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 320.708,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47541,
    "c": 0.1663,
    "h": 345.1
  },
  "luminance": 0.09319
}

Semantic roles & 50–950 ramp

primary
#982771
secondary
#5EBC7F
accent
#E27C45
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #982771

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

Preview Lab → · Contrast checker → · Palette generator →

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