#981A7D#981A7D

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

Color values

HEX#981A7D
RGBrgb(152, 26, 125)
HSLhsl(313, 71%, 35%)
HSVhsv(313, 83%, 60%)
CMYKcmyk(0%, 82.9%, 17.8%, 40.4%)
CIE-LABlab(35.78, 58.62, -24.82)
CIE-LCHlch(35.78, 63.65, 337.05°)
OKLaboklab(47.14% 0.1745 -0.0673)
OKLCHoklch(47.14% 0.187 338.9)
XYZxyz(17.0204, 8.8966, 20.2189)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A7D #1A9835
analogous
#741A98 #981A7D #981A3E
triadic
#981A7D #7D981A #1A7D98
tetradic
#981A7D #98741A #1A9835 #1A3E98
square
#981A7D #98741A #1A9835 #1A3E98
split-complementary
#981A7D #3E981A #1A9874
monochromatic
#2F0827 #641152 #981A7D #CC23A8 #E04CC1

Accessibility & contrast

On white

7.56
#981A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981A7D
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A7D#FFFFFF#000000##FFFFFF
##981A7D1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981a7d;
/* rgb */ color: rgb(152, 26, 125);
/* oklch */ color: oklch(47.1% 0.187 338.9);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#981a7d',
    950: '#000000',
  },
}
SCSS
$custom: #981a7d;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981a7d",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 312.857,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47136,
    "c": 0.18704,
    "h": 338.9
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#981A7D
secondary
#4BC265
accent
#EE613A
background
#FBF6FA
surface
#F7EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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