#981F78#981F78

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

Color values

HEX#981F78
RGBrgb(152, 31, 120)
HSLhsl(316, 66%, 36%)
HSVhsv(316, 80%, 60%)
CMYKcmyk(0%, 79.6%, 21.1%, 40.4%)
CIE-LABlab(36.01, 56.59, -21.34)
CIE-LCHlch(36.01, 60.48, 339.34°)
OKLaboklab(47.22% 0.1698 -0.0575)
OKLCHoklch(47.22% 0.179 341.3)
XYZxyz(16.8296, 9.0132, 18.6191)
Luminance0.0901 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F78 #1F983F
analogous
#7B1F98 #981F78 #981F3B
triadic
#981F78 #78981F #1F7898
tetradic
#981F78 #987B1F #1F983F #1F3B98
square
#981F78 #987B1F #1F983F #1F3B98
split-complementary
#981F78 #3B981F #1F987B
monochromatic
#320A28 #651550 #981F78 #CB29A0 #DC55B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981F78#FFFFFF#000000##FFFFFF
##981F781.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)
#2B487A
Deuteranopia (green-blind)
#525C75
Tritanopia (blue-blind)
#A2224A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f78;
/* rgb */ color: rgb(152, 31, 120);
/* oklch */ color: oklch(47.2% 0.179 341.3);
Tailwind
colors: {
  custom: {
    50: '#ba699f',
    500: '#981f78',
    950: '#000000',
  },
}
SCSS
$custom: #981f78;
$custom-light: #ba699f;
$custom-dark: #000000;
JSON
{
  "hex": "#981f78",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 315.868,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4722,
    "c": 0.17928,
    "h": 341.3
  },
  "luminance": 0.09011
}

Semantic roles & 50–950 ramp

primary
#981F78
secondary
#53C070
accent
#E96C3F
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #981F78

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

Preview Lab → · Contrast checker → · Palette generator →

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