#981B7A#981B7A

#981B7A is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.0% C 0.184 H 340.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#981B7A
RGBrgb(152, 27, 122)
HSLhsl(314, 70%, 35%)
HSVhsv(314, 82%, 60%)
CMYKcmyk(0%, 82.2%, 19.7%, 40.4%)
CIE-LABlab(35.73, 57.95, -23.03)
CIE-LCHlch(35.73, 62.36, 338.32°)
OKLaboklab(47.05% 0.1734 -0.0622)
OKLCHoklch(47.05% 0.184 340.3)
XYZxyz(16.8542, 8.8662, 19.2323)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B7A #1B9839
analogous
#771B98 #981B7A #981B3C
triadic
#981B7A #7A981B #1B7A98
tetradic
#981B7A #98771B #1B9839 #1B3C98
square
#981B7A #98771B #1B9839 #1B3C98
split-complementary
#981B7A #3C981B #1B9877
monochromatic
#300927 #641250 #981B7A #CC24A4 #E04EBD

Accessibility & contrast

On white

7.57
#981B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#981B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B7A
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B7A#FFFFFF#000000##FFFFFF
##981B7A1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#505B77
Tritanopia (blue-blind)
#A1204A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981b7a;
/* rgb */ color: rgb(152, 27, 122);
/* oklch */ color: oklch(47.0% 0.184 340.3);
Tailwind
colors: {
  custom: {
    50: '#ba68a0',
    500: '#981b7a',
    950: '#000000',
  },
}
SCSS
$custom: #981b7a;
$custom-light: #ba68a0;
$custom-dark: #000000;
JSON
{
  "hex": "#981b7a",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 314.4,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47046,
    "c": 0.18424,
    "h": 340.3
  },
  "luminance": 0.08864
}

Semantic roles & 50–950 ramp

primary
#981B7A
secondary
#4DC269
accent
#ED663B
background
#FBF6F9
surface
#F7EBF2
border
#D0C6CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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