#981A7E#981A7E

#981A7E is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.2% C 0.188 H 338.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#981A7E
RGBrgb(152, 26, 126)
HSLhsl(312, 71%, 35%)
HSVhsv(312, 83%, 60%)
CMYKcmyk(0%, 82.9%, 17.1%, 40.4%)
CIE-LABlab(35.83, 58.76, -25.37)
CIE-LCHlch(35.83, 64.00, 336.65°)
OKLaboklab(47.19% 0.1746 -0.0689)
OKLCHoklch(47.19% 0.188 338.5)
XYZxyz(17.0846, 8.9223, 20.5570)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A7E #1A9834
analogous
#731A98 #981A7E #981A3F
triadic
#981A7E #7E981A #1A7E98
tetradic
#981A7E #98731A #1A9834 #1A3F98
square
#981A7E #98731A #1A9834 #1A3F98
split-complementary
#981A7E #3F981A #1A9873
monochromatic
#2F0827 #641153 #981A7E #CC23A9 #E04CC2

Accessibility & contrast

On white

7.54
#981A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981A7E
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A7E#FFFFFF#000000##FFFFFF
##981A7E1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981a7e;
/* rgb */ color: rgb(152, 26, 126);
/* oklch */ color: oklch(47.2% 0.188 338.5);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#981a7e',
    950: '#000000',
  },
}
SCSS
$custom: #981a7e;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981a7e",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 312.381,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47188,
    "c": 0.1877,
    "h": 338.5
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#981A7E
secondary
#4BC264
accent
#EE5F3A
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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