#981A7B#981A7B

#981A7B is a mid, vivid pink. Relative luminance 0.088; OKLCH L 47.0% C 0.186 H 339.8°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#981A7B
RGBrgb(152, 26, 123)
HSLhsl(314, 71%, 35%)
HSVhsv(314, 83%, 60%)
CMYKcmyk(0%, 82.9%, 19.1%, 40.4%)
CIE-LABlab(35.69, 58.34, -23.72)
CIE-LCHlch(35.69, 62.98, 337.87°)
OKLaboklab(47.03% 0.1743 -0.0642)
OKLCHoklch(47.03% 0.186 339.8)
XYZxyz(16.8939, 8.8460, 19.5528)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A7B #1A9837
analogous
#761A98 #981A7B #981A3C
triadic
#981A7B #7B981A #1A7B98
tetradic
#981A7B #98761A #1A9837 #1A3C98
square
#981A7B #98761A #1A9837 #1A3C98
split-complementary
#981A7B #3C981A #1A9876
monochromatic
#2F0826 #641151 #981A7B #CC23A5 #E04CBE

Accessibility & contrast

On white

7.58
#981A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981A7B
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A7B#FFFFFF#000000##FFFFFF
##981A7B1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477D
Deuteranopia (green-blind)
#4F5B78
Tritanopia (blue-blind)
#A1204A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981a7b;
/* rgb */ color: rgb(152, 26, 123);
/* oklch */ color: oklch(47.0% 0.186 339.8);
Tailwind
colors: {
  custom: {
    50: '#ba68a1',
    500: '#981a7b',
    950: '#000000',
  },
}
SCSS
$custom: #981a7b;
$custom-light: #ba68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#981a7b",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 313.81,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47033,
    "c": 0.18574,
    "h": 339.8
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#981A7B
secondary
#4BC267
accent
#EE643A
background
#FBF6F9
surface
#F7EBF2
border
#D0C6CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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