#981E7B#981E7B

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

Color values

HEX#981E7B
RGBrgb(152, 30, 123)
HSLhsl(314, 67%, 36%)
HSVhsv(314, 80%, 60%)
CMYKcmyk(0%, 80.3%, 19.1%, 40.4%)
CIE-LABlab(36.05, 57.28, -23.15)
CIE-LCHlch(36.05, 61.79, 338.00°)
OKLaboklab(47.3% 0.1711 -0.0626)
OKLCHoklch(47.3% 0.182 339.9)
XYZxyz(16.9888, 9.0357, 19.5844)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E7B #1E983B
analogous
#781E98 #981E7B #981E3E
triadic
#981E7B #7B981E #1E7B98
tetradic
#981E7B #98781E #1E983B #1E3E98
square
#981E7B #98781E #1E983B #1E3E98
split-complementary
#981E7B #3E981E #1E9878
monochromatic
#320A28 #651452 #981E7B #CB28A4 #DD53BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981E7B#FFFFFF#000000##FFFFFF
##981E7B1.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)
#28497D
Deuteranopia (green-blind)
#515C78
Tritanopia (blue-blind)
#A1234B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981e7b;
/* rgb */ color: rgb(152, 30, 123);
/* oklch */ color: oklch(47.3% 0.182 339.9);
Tailwind
colors: {
  custom: {
    50: '#ba69a1',
    500: '#981e7b',
    950: '#000000',
  },
}
SCSS
$custom: #981e7b;
$custom-light: #ba69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#981e7b",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 314.262,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47297,
    "c": 0.18217,
    "h": 339.9
  },
  "luminance": 0.09034
}

Semantic roles & 50–950 ramp

primary
#981E7B
secondary
#51C06C
accent
#EA673E
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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