#981E7F#981E7F

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

Color values

HEX#981E7F
RGBrgb(152, 30, 127)
HSLhsl(312, 67%, 36%)
HSVhsv(312, 80%, 60%)
CMYKcmyk(0%, 80.3%, 16.4%, 40.4%)
CIE-LABlab(36.25, 57.85, -25.34)
CIE-LCHlch(36.25, 63.15, 336.34°)
OKLaboklab(47.5% 0.1715 -0.0688)
OKLCHoklch(47.5% 0.185 338.1)
XYZxyz(17.2443, 9.1379, 20.9302)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E7F #1E9837
analogous
#741E98 #981E7F #981E42
triadic
#981E7F #7F981E #1E7F98
tetradic
#981E7F #98741E #1E9837 #1E4298
square
#981E7F #98741E #1E9837 #1E4298
split-complementary
#981E7F #42981E #1E9874
monochromatic
#320A2A #651454 #981E7F #CB28AA #DD53C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981E7F#FFFFFF#000000##FFFFFF
##981E7F1.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)
#244982
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A1254D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981e7f;
/* rgb */ color: rgb(152, 30, 127);
/* oklch */ color: oklch(47.5% 0.185 338.1);
Tailwind
colors: {
  custom: {
    50: '#ba69a4',
    500: '#981e7f',
    950: '#000000',
  },
}
SCSS
$custom: #981e7f;
$custom-light: #ba69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#981e7f",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 312.295,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47501,
    "c": 0.18482,
    "h": 338.1
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#981E7F
secondary
#51C068
accent
#EA613E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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