#981A7C#981A7C

#981A7C is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.1% C 0.186 H 339.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#981A7C
RGBrgb(152, 26, 124)
HSLhsl(313, 71%, 35%)
HSVhsv(313, 83%, 60%)
CMYKcmyk(0%, 82.9%, 18.4%, 40.4%)
CIE-LABlab(35.74, 58.48, -24.27)
CIE-LCHlch(35.74, 63.32, 337.46°)
OKLaboklab(47.08% 0.1744 -0.0658)
OKLCHoklch(47.08% 0.186 339.3)
XYZxyz(16.9569, 8.8712, 19.8842)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A7C #1A9836
analogous
#751A98 #981A7C #981A3D
triadic
#981A7C #7C981A #1A7C98
tetradic
#981A7C #98751A #1A9836 #1A3D98
square
#981A7C #98751A #1A9836 #1A3D98
split-complementary
#981A7C #3D981A #1A9875
monochromatic
#2F0827 #641151 #981A7C #CC23A7 #E04CBF

Accessibility & contrast

On white

7.57
#981A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#981A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981A7C
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A7C#FFFFFF#000000##FFFFFF
##981A7C1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#4F5B79
Tritanopia (blue-blind)
#A1204B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #981a7c;
/* rgb */ color: rgb(152, 26, 124);
/* oklch */ color: oklch(47.1% 0.186 339.3);
Tailwind
colors: {
  custom: {
    50: '#ba68a2',
    500: '#981a7c',
    950: '#000000',
  },
}
SCSS
$custom: #981a7c;
$custom-light: #ba68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#981a7c",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 313.333,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47084,
    "c": 0.18639,
    "h": 339.3
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#981A7C
secondary
#4BC266
accent
#EE623A
background
#FBF6FA
surface
#F7EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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