#981C7E#981C7E

#981C7E is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.3% C 0.186 H 338.5°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#981C7E
RGBrgb(152, 28, 126)
HSLhsl(313, 69%, 35%)
HSVhsv(313, 82%, 60%)
CMYKcmyk(0%, 81.6%, 17.1%, 40.4%)
CIE-LABlab(36.01, 58.25, -25.09)
CIE-LCHlch(36.01, 63.42, 336.70°)
OKLaboklab(47.32% 0.1731 -0.0681)
OKLCHoklch(47.32% 0.186 338.5)
XYZxyz(17.1305, 9.0140, 20.5723)
Luminance0.0901 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C7E #1C9836
analogous
#741C98 #981C7E #981C40
triadic
#981C7E #7E981C #1C7E98
tetradic
#981C7E #98741C #1C9836 #1C4098
square
#981C7E #98741C #1C9836 #1C4098
split-complementary
#981C7E #40981C #1C9874
monochromatic
#310928 #641253 #981C7E #CC26A9 #DF50C1

Accessibility & contrast

On white

7.49
#981C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#981C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C7E
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C7E#FFFFFF#000000##FFFFFF
##981C7E1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244981
Deuteranopia (green-blind)
#4F5B7B
Tritanopia (blue-blind)
#A1234C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981c7e;
/* rgb */ color: rgb(152, 28, 126);
/* oklch */ color: oklch(47.3% 0.186 338.5);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#981c7e',
    950: '#000000',
  },
}
SCSS
$custom: #981c7e;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981c7e",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 312.581,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47315,
    "c": 0.18598,
    "h": 338.5
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#981C7E
secondary
#4EC167
accent
#EC613C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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