#981D7E#981D7E

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

Color values

HEX#981D7E
RGBrgb(152, 29, 126)
HSLhsl(313, 68%, 35%)
HSVhsv(313, 81%, 60%)
CMYKcmyk(0%, 80.9%, 17.1%, 40.4%)
CIE-LABlab(36.10, 57.98, -24.94)
CIE-LCHlch(36.10, 63.12, 336.72°)
OKLaboklab(47.38% 0.1722 -0.0677)
OKLCHoklch(47.38% 0.185 338.5)
XYZxyz(17.1546, 9.0622, 20.5804)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D7E #1D9837
analogous
#741D98 #981D7E #981D40
triadic
#981D7E #7E981D #1D7E98
tetradic
#981D7E #98741D #1D9837 #1D4098
square
#981D7E #98741D #1D9837 #1D4098
split-complementary
#981D7E #40981D #1D9874
monochromatic
#310929 #651353 #981D7E #CB27A9 #DE52C0

Accessibility & contrast

On white

7.47
#981D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981D7E
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D7E#FFFFFF#000000##FFFFFF
##981D7E1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981d7e;
/* rgb */ color: rgb(152, 29, 126);
/* oklch */ color: oklch(47.4% 0.185 338.5);
Tailwind
colors: {
  custom: {
    50: '#ba69a3',
    500: '#981d7e',
    950: '#000000',
  },
}
SCSS
$custom: #981d7e;
$custom-light: #ba69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981d7e",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 312.683,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.18508,
    "h": 338.5
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#981D7E
secondary
#50C168
accent
#EB623D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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