#981D7B#981D7B

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

Color values

HEX#981D7B
RGBrgb(152, 29, 123)
HSLhsl(314, 68%, 35%)
HSVhsv(314, 81%, 60%)
CMYKcmyk(0%, 80.9%, 19.1%, 40.4%)
CIE-LABlab(35.96, 57.56, -23.30)
CIE-LCHlch(35.96, 62.10, 337.96°)
OKLaboklab(47.23% 0.1719 -0.063)
OKLCHoklch(47.23% 0.183 339.9)
XYZxyz(16.9639, 8.9859, 19.5761)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D7B #1D983A
analogous
#771D98 #981D7B #981D3E
triadic
#981D7B #7B981D #1D7B98
tetradic
#981D7B #98771D #1D983A #1D3E98
square
#981D7B #98771D #1D983A #1D3E98
split-complementary
#981D7B #3E981D #1D9877
monochromatic
#310928 #651351 #981D7B #CB27A5 #DE52BD

Accessibility & contrast

On white

7.51
#981D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#981D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##981D7B#FFFFFF#000000##FFFFFF
##981D7B1.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)
#27487D
Deuteranopia (green-blind)
#505B78
Tritanopia (blue-blind)
#A1224B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981d7b;
/* rgb */ color: rgb(152, 29, 123);
/* oklch */ color: oklch(47.2% 0.183 339.9);
Tailwind
colors: {
  custom: {
    50: '#ba69a1',
    500: '#981d7b',
    950: '#000000',
  },
}
SCSS
$custom: #981d7b;
$custom-light: #ba69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#981d7b",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 314.146,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47228,
    "c": 0.18311,
    "h": 339.9
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#981D7B
secondary
#50C16B
accent
#EB663D
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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