#981B78#981B78

#981B78 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.9% C 0.183 H 341.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#981B78
RGBrgb(152, 27, 120)
HSLhsl(315, 70%, 35%)
HSVhsv(315, 82%, 60%)
CMYKcmyk(0%, 82.2%, 21.1%, 40.4%)
CIE-LABlab(35.63, 57.68, -21.93)
CIE-LCHlch(35.63, 61.71, 339.18°)
OKLaboklab(46.95% 0.1732 -0.0591)
OKLCHoklch(46.95% 0.183 341.2)
XYZxyz(16.7316, 8.8171, 18.5864)
Luminance0.0882 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B78 #1B983B
analogous
#791B98 #981B78 #981B3A
triadic
#981B78 #78981B #1B7898
tetradic
#981B78 #98791B #1B983B #1B3A98
square
#981B78 #98791B #1B983B #1B3A98
split-complementary
#981B78 #3A981B #1B9879
monochromatic
#300926 #64124F #981B78 #CC24A1 #E04EBA

Accessibility & contrast

On white

7.60
#981B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#981B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B78
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B78#FFFFFF#000000##FFFFFF
##981B781.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#515B75
Tritanopia (blue-blind)
#A21E49
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981b78;
/* rgb */ color: rgb(152, 27, 120);
/* oklch */ color: oklch(46.9% 0.183 341.2);
Tailwind
colors: {
  custom: {
    50: '#ba689f',
    500: '#981b78',
    950: '#000000',
  },
}
SCSS
$custom: #981b78;
$custom-light: #ba689f;
$custom-dark: #000000;
JSON
{
  "hex": "#981b78",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 315.36,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46946,
    "c": 0.18296,
    "h": 341.2
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#981B78
secondary
#4DC26B
accent
#ED693B
background
#FBF6F9
surface
#F7EBF2
border
#D0C6CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #981B78

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

Preview Lab → · Contrast checker → · Palette generator →

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