#981F7A#981F7A

#981F7A is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.3% C 0.181 H 340.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#981F7A
RGBrgb(152, 31, 122)
HSLhsl(315, 66%, 36%)
HSVhsv(315, 80%, 60%)
CMYKcmyk(0%, 79.6%, 19.7%, 40.4%)
CIE-LABlab(36.10, 56.86, -22.44)
CIE-LCHlch(36.10, 61.13, 338.46°)
OKLaboklab(47.32% 0.1701 -0.0606)
OKLCHoklch(47.32% 0.181 340.4)
XYZxyz(16.9523, 9.0623, 19.2650)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F7A #1F983D
analogous
#791F98 #981F7A #981F3D
triadic
#981F7A #7A981F #1F7A98
tetradic
#981F7A #98791F #1F983D #1F3D98
square
#981F7A #98791F #1F983D #1F3D98
split-complementary
#981F7A #3D981F #1F9879
monochromatic
#320A28 #651551 #981F7A #CB29A3 #DC55BB

Accessibility & contrast

On white

7.47
#981F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#981F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F7A
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F7A#FFFFFF#000000##FFFFFF
##981F7A1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497C
Deuteranopia (green-blind)
#515C77
Tritanopia (blue-blind)
#A1234B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f7a;
/* rgb */ color: rgb(152, 31, 122);
/* oklch */ color: oklch(47.3% 0.181 340.4);
Tailwind
colors: {
  custom: {
    50: '#ba69a0',
    500: '#981f7a',
    950: '#000000',
  },
}
SCSS
$custom: #981f7a;
$custom-light: #ba69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#981f7a",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 314.876,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47318,
    "c": 0.18057,
    "h": 340.4
  },
  "luminance": 0.09061
}

Semantic roles & 50–950 ramp

primary
#981F7A
secondary
#53C06E
accent
#E9693F
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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