#981F7C#981F7C

#981F7C is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.4% C 0.182 H 339.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#981F7C
RGBrgb(152, 31, 124)
HSLhsl(314, 66%, 36%)
HSVhsv(314, 80%, 60%)
CMYKcmyk(0%, 79.6%, 18.4%, 40.4%)
CIE-LABlab(36.20, 57.14, -23.55)
CIE-LCHlch(36.20, 61.80, 337.60°)
OKLaboklab(47.42% 0.1703 -0.0637)
OKLCHoklch(47.42% 0.182 339.5)
XYZxyz(17.0774, 9.1123, 19.9244)
Luminance0.0911 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F7C #1F983B
analogous
#771F98 #981F7C #981F40
triadic
#981F7C #7C981F #1F7C98
tetradic
#981F7C #98771F #1F983B #1F4098
square
#981F7C #98771F #1F983B #1F4098
split-complementary
#981F7C #40981F #1F9877
monochromatic
#320A29 #651553 #981F7C #CB29A5 #DC55BD

Accessibility & contrast

On white

7.44
#981F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#981F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F7C
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F7C#FFFFFF#000000##FFFFFF
##981F7C1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497E
Deuteranopia (green-blind)
#505C79
Tritanopia (blue-blind)
#A1244C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f7c;
/* rgb */ color: rgb(152, 31, 124);
/* oklch */ color: oklch(47.4% 0.182 339.5);
Tailwind
colors: {
  custom: {
    50: '#ba69a2',
    500: '#981f7c',
    950: '#000000',
  },
}
SCSS
$custom: #981f7c;
$custom-light: #ba69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#981f7c",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 313.884,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47418,
    "c": 0.18187,
    "h": 339.5
  },
  "luminance": 0.09111
}

Semantic roles & 50–950 ramp

primary
#981F7C
secondary
#53C06C
accent
#E9663F
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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