#981B7F#981B7F

#981B7F is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.3% C 0.188 H 338.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#981B7F
RGBrgb(152, 27, 127)
HSLhsl(312, 70%, 35%)
HSVhsv(312, 82%, 60%)
CMYKcmyk(0%, 82.2%, 16.4%, 40.4%)
CIE-LABlab(35.97, 58.65, -25.78)
CIE-LCHlch(35.97, 64.06, 336.27°)
OKLaboklab(47.3% 0.1739 -0.0701)
OKLCHoklch(47.3% 0.188 338.1)
XYZxyz(17.1720, 8.9933, 20.9061)
Luminance0.0899 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B7F #1B9834
analogous
#721B98 #981B7F #981B41
triadic
#981B7F #7F981B #1B7F98
tetradic
#981B7F #98721B #1B9834 #1B4198
square
#981B7F #98721B #1B9834 #1B4198
split-complementary
#981B7F #41981B #1B9872
monochromatic
#300928 #641254 #981B7F #CC24AA #E04EC2

Accessibility & contrast

On white

7.50
#981B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981B7F
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B7F#FFFFFF#000000##FFFFFF
##981B7F1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224882
Deuteranopia (green-blind)
#4E5B7C
Tritanopia (blue-blind)
#A1234D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981b7f;
/* rgb */ color: rgb(152, 27, 127);
/* oklch */ color: oklch(47.3% 0.188 338.1);
Tailwind
colors: {
  custom: {
    50: '#ba68a4',
    500: '#981b7f',
    950: '#000000',
  },
}
SCSS
$custom: #981b7f;
$custom-light: #ba68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#981b7f",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 312,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47302,
    "c": 0.18751,
    "h": 338.1
  },
  "luminance": 0.08992
}

Semantic roles & 50–950 ramp

primary
#981B7F
secondary
#4DC264
accent
#ED5F3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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