#981D7C#981D7C

#981D7C is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.3% C 0.184 H 339.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#981D7C
RGBrgb(152, 29, 124)
HSLhsl(314, 68%, 35%)
HSVhsv(314, 81%, 60%)
CMYKcmyk(0%, 80.9%, 18.4%, 40.4%)
CIE-LABlab(36.01, 57.70, -23.85)
CIE-LCHlch(36.01, 62.43, 337.54°)
OKLaboklab(47.28% 0.172 -0.0646)
OKLCHoklch(47.28% 0.184 339.4)
XYZxyz(17.0268, 9.0111, 19.9075)
Luminance0.0901 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D7C #1D9839
analogous
#771D98 #981D7C #981D3E
triadic
#981D7C #7C981D #1D7C98
tetradic
#981D7C #98771D #1D9839 #1D3E98
square
#981D7C #98771D #1D9839 #1D3E98
split-complementary
#981D7C #3E981D #1D9877
monochromatic
#310928 #651352 #981D7C #CB27A6 #DE52BE

Accessibility & contrast

On white

7.50
#981D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981D7C
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D7C#FFFFFF#000000##FFFFFF
##981D7C1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487E
Deuteranopia (green-blind)
#505B79
Tritanopia (blue-blind)
#A1234B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981d7c;
/* rgb */ color: rgb(152, 29, 124);
/* oklch */ color: oklch(47.3% 0.184 339.4);
Tailwind
colors: {
  custom: {
    50: '#ba69a2',
    500: '#981d7c',
    950: '#000000',
  },
}
SCSS
$custom: #981d7c;
$custom-light: #ba69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#981d7c",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 313.659,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47279,
    "c": 0.18375,
    "h": 339.4
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#981D7C
secondary
#50C16A
accent
#EB653D
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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