#981F7F#981F7F

#981F7F is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.6% C 0.184 H 338.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#981F7F
RGBrgb(152, 31, 127)
HSLhsl(312, 66%, 36%)
HSVhsv(312, 80%, 60%)
CMYKcmyk(0%, 79.6%, 16.4%, 40.4%)
CIE-LABlab(36.35, 57.57, -25.19)
CIE-LCHlch(36.35, 62.84, 336.37°)
OKLaboklab(47.57% 0.1707 -0.0684)
OKLCHoklch(47.57% 0.184 338.2)
XYZxyz(17.2701, 9.1894, 20.9388)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F7F #1F9838
analogous
#741F98 #981F7F #981F42
triadic
#981F7F #7F981F #1F7F98
tetradic
#981F7F #98741F #1F9838 #1F4298
square
#981F7F #98741F #1F9838 #1F4298
split-complementary
#981F7F #42981F #1F9874
monochromatic
#320A2A #651555 #981F7F #CB29A9 #DC55C0

Accessibility & contrast

On white

7.40
#981F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#981F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F7F
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F7F#FFFFFF#000000##FFFFFF
##981F7F1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254A82
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A1264E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f7f;
/* rgb */ color: rgb(152, 31, 127);
/* oklch */ color: oklch(47.6% 0.184 338.2);
Tailwind
colors: {
  custom: {
    50: '#ba6aa4',
    500: '#981f7f',
    950: '#000000',
  },
}
SCSS
$custom: #981f7f;
$custom-light: #ba6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#981f7f",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 312.397,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.18388,
    "h": 338.2
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#981F7F
secondary
#53C069
accent
#E9623F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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