#982271#982271

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

Color values

HEX#982271
RGBrgb(152, 34, 113)
HSLhsl(320, 63%, 36%)
HSVhsv(320, 78%, 60%)
CMYKcmyk(0%, 77.6%, 25.7%, 40.4%)
CIE-LABlab(36.01, 54.75, -16.93)
CIE-LCHlch(36.01, 57.31, 342.81°)
OKLaboklab(47.12% 0.1659 -0.0451)
OKLCHoklch(47.12% 0.172 344.8)
XYZxyz(16.5023, 9.0135, 16.4903)
Luminance0.0901 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982271 #229849
analogous
#842298 #982271 #982236
triadic
#982271 #719822 #227198
tetradic
#982271 #988422 #229849 #223698
square
#982271 #988422 #229849 #223698
split-complementary
#982271 #369822 #229884
monochromatic
#340C27 #66174C #982271 #CA2D96 #DA5AB0

Accessibility & contrast

On white

7.49
#982271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #982271
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982271#FFFFFF#000000##FFFFFF
##9822711.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #982271;
/* rgb */ color: rgb(152, 34, 113);
/* oklch */ color: oklch(47.1% 0.172 344.8);
Tailwind
colors: {
  custom: {
    50: '#ba6a9a',
    500: '#982271',
    950: '#000000',
  },
}
SCSS
$custom: #982271;
$custom-light: #ba6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#982271",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 319.831,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47117,
    "c": 0.17188,
    "h": 344.8
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#982271
secondary
#57BE79
accent
#E67841
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #982271

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

Preview Lab → · Contrast checker → · Palette generator →

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