#981F82#981F82

#981F82 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.7% C 0.186 H 336.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#981F82
RGBrgb(152, 31, 130)
HSLhsl(311, 66%, 36%)
HSVhsv(311, 80%, 60%)
CMYKcmyk(0%, 79.6%, 14.5%, 40.4%)
CIE-LABlab(36.50, 58.00, -26.82)
CIE-LCHlch(36.50, 63.90, 335.18°)
OKLaboklab(47.73% 0.171 -0.0731)
OKLCHoklch(47.73% 0.186 336.9)
XYZxyz(17.4685, 9.2687, 21.9838)
Luminance0.0927 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F82 #1F9835
analogous
#711F98 #981F82 #981F45
triadic
#981F82 #82981F #1F8298
tetradic
#981F82 #98711F #1F9835 #1F4598
square
#981F82 #98711F #1F9835 #1F4598
split-complementary
#981F82 #45981F #1F9871
monochromatic
#320A2B #651557 #981F82 #CB29AD #DC55C4

Accessibility & contrast

On white

7.36
#981F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#981F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F82
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F82#FFFFFF#000000##FFFFFF
##981F821.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234A85
Deuteranopia (green-blind)
#4E5C7F
Tritanopia (blue-blind)
#A0284F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981f82;
/* rgb */ color: rgb(152, 31, 130);
/* oklch */ color: oklch(47.7% 0.186 336.9);
Tailwind
colors: {
  custom: {
    50: '#ba6aa6',
    500: '#981f82',
    950: '#000000',
  },
}
SCSS
$custom: #981f82;
$custom-light: #ba6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#981f82",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 310.909,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47729,
    "c": 0.18592,
    "h": 336.9
  },
  "luminance": 0.09267
}

Semantic roles & 50–950 ramp

primary
#981F82
secondary
#53C067
accent
#E95E3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981F82

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

Preview Lab → · Contrast checker → · Palette generator →

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