#981C7B#981C7B

#981C7B is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.2% C 0.184 H 339.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#981C7B
RGBrgb(152, 28, 123)
HSLhsl(314, 69%, 35%)
HSVhsv(314, 82%, 60%)
CMYKcmyk(0%, 81.6%, 19.1%, 40.4%)
CIE-LABlab(35.86, 57.83, -23.44)
CIE-LCHlch(35.86, 62.40, 337.93°)
OKLaboklab(47.16% 0.1727 -0.0634)
OKLCHoklch(47.16% 0.184 339.8)
XYZxyz(16.9398, 8.9377, 19.5681)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C7B #1C9839
analogous
#771C98 #981C7B #981C3D
triadic
#981C7B #7B981C #1C7B98
tetradic
#981C7B #98771C #1C9839 #1C3D98
square
#981C7B #98771C #1C9839 #1C3D98
split-complementary
#981C7B #3D981C #1C9877
monochromatic
#310927 #641251 #981C7B #CC26A5 #DF50BD

Accessibility & contrast

On white

7.53
#981C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#981C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C7B
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C7B#FFFFFF#000000##FFFFFF
##981C7B1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487D
Deuteranopia (green-blind)
#505B78
Tritanopia (blue-blind)
#A1214B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981c7b;
/* rgb */ color: rgb(152, 28, 123);
/* oklch */ color: oklch(47.2% 0.184 339.8);
Tailwind
colors: {
  custom: {
    50: '#ba68a1',
    500: '#981c7b',
    950: '#000000',
  },
}
SCSS
$custom: #981c7b;
$custom-light: #ba68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#981c7b",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 314.032,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47161,
    "c": 0.184,
    "h": 339.8
  },
  "luminance": 0.08936
}

Semantic roles & 50–950 ramp

primary
#981C7B
secondary
#4EC169
accent
#EC653C
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #981C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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