#981C7F#981C7F

#981C7F is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.4% C 0.187 H 338.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#981C7F
RGBrgb(152, 28, 127)
HSLhsl(312, 69%, 35%)
HSVhsv(312, 82%, 60%)
CMYKcmyk(0%, 81.6%, 16.4%, 40.4%)
CIE-LABlab(36.06, 58.39, -25.63)
CIE-LCHlch(36.06, 63.77, 336.30°)
OKLaboklab(47.37% 0.1732 -0.0697)
OKLCHoklch(47.37% 0.187 338.1)
XYZxyz(17.1953, 9.0399, 20.9138)
Luminance0.0904 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C7F #1C9835
analogous
#731C98 #981C7F #981C41
triadic
#981C7F #7F981C #1C7F98
tetradic
#981C7F #98731C #1C9835 #1C4198
square
#981C7F #98731C #1C9835 #1C4198
split-complementary
#981C7F #41981C #1C9873
monochromatic
#310929 #641254 #981C7F #CC26AA #DF50C2

Accessibility & contrast

On white

7.48
#981C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981C7F
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C7F#FFFFFF#000000##FFFFFF
##981C7F1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#4E5B7C
Tritanopia (blue-blind)
#A1244D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981c7f;
/* rgb */ color: rgb(152, 28, 127);
/* oklch */ color: oklch(47.4% 0.187 338.1);
Tailwind
colors: {
  custom: {
    50: '#ba69a4',
    500: '#981c7f',
    950: '#000000',
  },
}
SCSS
$custom: #981c7f;
$custom-light: #ba69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#981c7f",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 312.097,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47367,
    "c": 0.18664,
    "h": 338.1
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#981C7F
secondary
#4EC166
accent
#EC5F3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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