#981B7C#981B7C

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

Color values

HEX#981B7C
RGBrgb(152, 27, 124)
HSLhsl(313, 70%, 35%)
HSVhsv(313, 82%, 60%)
CMYKcmyk(0%, 82.2%, 18.4%, 40.4%)
CIE-LABlab(35.82, 58.23, -24.13)
CIE-LCHlch(35.82, 63.03, 337.49°)
OKLaboklab(47.15% 0.1736 -0.0654)
OKLCHoklch(47.15% 0.186 339.4)
XYZxyz(16.9794, 8.9162, 19.8917)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B7C #1B9837
analogous
#751B98 #981B7C #981B3E
triadic
#981B7C #7C981B #1B7C98
tetradic
#981B7C #98751B #1B9837 #1B3E98
square
#981B7C #98751B #1B9837 #1B3E98
split-complementary
#981B7C #3E981B #1B9875
monochromatic
#300927 #641252 #981B7C #CC24A6 #E04EBF

Accessibility & contrast

On white

7.55
#981B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#981B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B7C
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B7C#FFFFFF#000000##FFFFFF
##981B7C1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#4F5B79
Tritanopia (blue-blind)
#A1214B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981b7c;
/* rgb */ color: rgb(152, 27, 124);
/* oklch */ color: oklch(47.1% 0.186 339.4);
Tailwind
colors: {
  custom: {
    50: '#ba68a2',
    500: '#981b7c',
    950: '#000000',
  },
}
SCSS
$custom: #981b7c;
$custom-light: #ba68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#981b7c",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 313.44,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.18554,
    "h": 339.4
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#981B7C
secondary
#4DC267
accent
#ED633B
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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