#981F7D#981F7D

#981F7D is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.5% C 0.183 H 339.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#981F7D
RGBrgb(152, 31, 125)
HSLhsl(313, 66%, 36%)
HSVhsv(313, 80%, 60%)
CMYKcmyk(0%, 79.6%, 17.8%, 40.4%)
CIE-LABlab(36.25, 57.28, -24.09)
CIE-LCHlch(36.25, 62.14, 337.19°)
OKLaboklab(47.47% 0.1705 -0.0653)
OKLCHoklch(47.47% 0.183 339)
XYZxyz(17.1410, 9.1378, 20.2591)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F7D #1F983A
analogous
#761F98 #981F7D #981F41
triadic
#981F7D #7D981F #1F7D98
tetradic
#981F7D #98761F #1F983A #1F4198
square
#981F7D #98761F #1F983A #1F4198
split-complementary
#981F7D #41981F #1F9876
monochromatic
#320A29 #651553 #981F7D #CB29A7 #DC55BE

Accessibility & contrast

On white

7.43
#981F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#981F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F7D
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F7D#FFFFFF#000000##FFFFFF
##981F7D1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497F
Deuteranopia (green-blind)
#505C7A
Tritanopia (blue-blind)
#A1254D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f7d;
/* rgb */ color: rgb(152, 31, 125);
/* oklch */ color: oklch(47.5% 0.183 339.0);
Tailwind
colors: {
  custom: {
    50: '#ba69a3',
    500: '#981f7d',
    950: '#000000',
  },
}
SCSS
$custom: #981f7d;
$custom-light: #ba69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981f7d",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 313.388,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47469,
    "c": 0.18254,
    "h": 339
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#981F7D
secondary
#53C06B
accent
#E9653F
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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