#981F7B#981F7B

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

Color values

HEX#981F7B
RGBrgb(152, 31, 123)
HSLhsl(314, 66%, 36%)
HSVhsv(314, 80%, 60%)
CMYKcmyk(0%, 79.6%, 19.1%, 40.4%)
CIE-LABlab(36.15, 57.00, -23.00)
CIE-LCHlch(36.15, 61.47, 338.03°)
OKLaboklab(47.37% 0.1702 -0.0622)
OKLCHoklch(47.37% 0.181 339.9)
XYZxyz(17.0145, 9.0872, 19.5930)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F7B #1F983C
analogous
#781F98 #981F7B #981F3E
triadic
#981F7B #7B981F #1F7B98
tetradic
#981F7B #98781F #1F983C #1F3E98
square
#981F7B #98781F #1F983C #1F3E98
split-complementary
#981F7B #3E981F #1F9878
monochromatic
#320A29 #651552 #981F7B #CB29A4 #DC55BC

Accessibility & contrast

On white

7.45
#981F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981F7B
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F7B#FFFFFF#000000##FFFFFF
##981F7B1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#515C78
Tritanopia (blue-blind)
#A1244B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f7b;
/* rgb */ color: rgb(152, 31, 123);
/* oklch */ color: oklch(47.4% 0.181 339.9);
Tailwind
colors: {
  custom: {
    50: '#ba69a1',
    500: '#981f7b',
    950: '#000000',
  },
}
SCSS
$custom: #981f7b;
$custom-light: #ba69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#981f7b",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 314.38,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47368,
    "c": 0.18122,
    "h": 339.9
  },
  "luminance": 0.09085
}

Semantic roles & 50–950 ramp

primary
#981F7B
secondary
#53C06D
accent
#E9683F
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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