#981D7A#981D7A

#981D7A is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.2% C 0.182 H 340.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#981D7A
RGBrgb(152, 29, 122)
HSLhsl(315, 68%, 35%)
HSVhsv(315, 81%, 60%)
CMYKcmyk(0%, 80.9%, 19.7%, 40.4%)
CIE-LABlab(35.91, 57.42, -22.75)
CIE-LCHlch(35.91, 61.76, 338.39°)
OKLaboklab(47.18% 0.1718 -0.0614)
OKLCHoklch(47.18% 0.182 340.3)
XYZxyz(16.9016, 8.9610, 19.2481)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D7A #1D983B
analogous
#781D98 #981D7A #981D3C
triadic
#981D7A #7A981D #1D7A98
tetradic
#981D7A #98781D #1D983B #1D3C98
square
#981D7A #98781D #1D983B #1D3C98
split-complementary
#981D7A #3C981D #1D9878
monochromatic
#310927 #651351 #981D7A #CB27A3 #DE52BC

Accessibility & contrast

On white

7.52
#981D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#981D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##981D7A#FFFFFF#000000##FFFFFF
##981D7A1.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)
#28487C
Deuteranopia (green-blind)
#515B77
Tritanopia (blue-blind)
#A1214A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981d7a;
/* rgb */ color: rgb(152, 29, 122);
/* oklch */ color: oklch(47.2% 0.182 340.3);
Tailwind
colors: {
  custom: {
    50: '#ba69a0',
    500: '#981d7a',
    950: '#000000',
  },
}
SCSS
$custom: #981d7a;
$custom-light: #ba69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#981d7a",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 314.634,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47178,
    "c": 0.18245,
    "h": 340.3
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#981D7A
secondary
#50C16C
accent
#EB673D
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981D7A

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

Preview Lab → · Contrast checker → · Palette generator →

#981D7A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva