#981D7F#981D7F

#981D7F is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.4% C 0.186 H 338.1°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#981D7F
RGBrgb(152, 29, 127)
HSLhsl(312, 68%, 35%)
HSVhsv(312, 81%, 60%)
CMYKcmyk(0%, 80.9%, 16.4%, 40.4%)
CIE-LABlab(36.15, 58.12, -25.49)
CIE-LCHlch(36.15, 63.46, 336.32°)
OKLaboklab(47.43% 0.1724 -0.0693)
OKLCHoklch(47.43% 0.186 338.1)
XYZxyz(17.2194, 9.0881, 20.9219)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D7F #1D9836
analogous
#731D98 #981D7F #981D41
triadic
#981D7F #7F981D #1D7F98
tetradic
#981D7F #98731D #1D9836 #1D4198
square
#981D7F #98731D #1D9836 #1D4198
split-complementary
#981D7F #41981D #1D9873
monochromatic
#310929 #651354 #981D7F #CB27AA #DE52C1

Accessibility & contrast

On white

7.45
#981D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#981D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981D7F
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D7F#FFFFFF#000000##FFFFFF
##981D7F1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244982
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A1254D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981d7f;
/* rgb */ color: rgb(152, 29, 127);
/* oklch */ color: oklch(47.4% 0.186 338.1);
Tailwind
colors: {
  custom: {
    50: '#ba69a4',
    500: '#981d7f',
    950: '#000000',
  },
}
SCSS
$custom: #981d7f;
$custom-light: #ba69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#981d7f",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 312.195,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47433,
    "c": 0.18575,
    "h": 338.1
  },
  "luminance": 0.09086
}

Semantic roles & 50–950 ramp

primary
#981D7F
secondary
#50C167
accent
#EB603D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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