#981B7E#981B7E

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

Color values

HEX#981B7E
RGBrgb(152, 27, 126)
HSLhsl(312, 70%, 35%)
HSVhsv(312, 82%, 60%)
CMYKcmyk(0%, 82.2%, 17.1%, 40.4%)
CIE-LABlab(35.92, 58.51, -25.23)
CIE-LCHlch(35.92, 63.71, 336.67°)
OKLaboklab(47.25% 0.1738 -0.0685)
OKLCHoklch(47.25% 0.187 338.5)
XYZxyz(17.1072, 8.9673, 20.5645)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B7E #1B9835
analogous
#731B98 #981B7E #981B40
triadic
#981B7E #7E981B #1B7E98
tetradic
#981B7E #98731B #1B9835 #1B4098
square
#981B7E #98731B #1B9835 #1B4098
split-complementary
#981B7E #40981B #1B9873
monochromatic
#300928 #641253 #981B7E #CC24A9 #E04EC1

Accessibility & contrast

On white

7.52
#981B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981B7E
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B7E#FFFFFF#000000##FFFFFF
##981B7E1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234881
Deuteranopia (green-blind)
#4F5B7B
Tritanopia (blue-blind)
#A1224C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981b7e;
/* rgb */ color: rgb(152, 27, 126);
/* oklch */ color: oklch(47.3% 0.187 338.5);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#981b7e',
    950: '#000000',
  },
}
SCSS
$custom: #981b7e;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981b7e",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 312.48,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4725,
    "c": 0.18685,
    "h": 338.5
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#981B7E
secondary
#4DC265
accent
#ED603B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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