#981B7D#981B7D

#981B7D is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.2% C 0.186 H 338.9°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#981B7D
RGBrgb(152, 27, 125)
HSLhsl(313, 70%, 35%)
HSVhsv(313, 82%, 60%)
CMYKcmyk(0%, 82.2%, 17.8%, 40.4%)
CIE-LABlab(35.87, 58.36, -24.68)
CIE-LCHlch(35.87, 63.37, 337.08°)
OKLaboklab(47.2% 0.1737 -0.0669)
OKLCHoklch(47.2% 0.186 338.9)
XYZxyz(17.0430, 8.9417, 20.2264)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B7D #1B9836
analogous
#741B98 #981B7D #981B3F
triadic
#981B7D #7D981B #1B7D98
tetradic
#981B7D #98741B #1B9836 #1B3F98
square
#981B7D #98741B #1B9836 #1B3F98
split-complementary
#981B7D #3F981B #1B9874
monochromatic
#300928 #641252 #981B7D #CC24A8 #E04EC0

Accessibility & contrast

On white

7.53
#981B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981B7D
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B7D#FFFFFF#000000##FFFFFF
##981B7D1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#4F5B7A
Tritanopia (blue-blind)
#A1224C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981b7d;
/* rgb */ color: rgb(152, 27, 125);
/* oklch */ color: oklch(47.2% 0.186 338.9);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#981b7d',
    950: '#000000',
  },
}
SCSS
$custom: #981b7d;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981b7d",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 312.96,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47198,
    "c": 0.18619,
    "h": 338.9
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#981B7D
secondary
#4DC266
accent
#ED623B
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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