#981F7E#981F7E

#981F7E is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.5% C 0.183 H 338.6°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#981F7E
RGBrgb(152, 31, 126)
HSLhsl(313, 66%, 36%)
HSVhsv(313, 80%, 60%)
CMYKcmyk(0%, 79.6%, 17.1%, 40.4%)
CIE-LABlab(36.30, 57.42, -24.64)
CIE-LCHlch(36.30, 62.49, 336.77°)
OKLaboklab(47.52% 0.1706 -0.0669)
OKLCHoklch(47.52% 0.183 338.6)
XYZxyz(17.2052, 9.1634, 20.5972)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F7E #1F9839
analogous
#751F98 #981F7E #981F41
triadic
#981F7E #7E981F #1F7E98
tetradic
#981F7E #98751F #1F9839 #1F4198
square
#981F7E #98751F #1F9839 #1F4198
split-complementary
#981F7E #41981F #1F9875
monochromatic
#320A2A #651554 #981F7E #CB29A8 #DC55BF

Accessibility & contrast

On white

7.41
#981F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#981F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F7E
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F7E#FFFFFF#000000##FFFFFF
##981F7E1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#505C7B
Tritanopia (blue-blind)
#A1254D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981f7e;
/* rgb */ color: rgb(152, 31, 126);
/* oklch */ color: oklch(47.5% 0.183 338.6);
Tailwind
colors: {
  custom: {
    50: '#ba69a3',
    500: '#981f7e',
    950: '#000000',
  },
}
SCSS
$custom: #981f7e;
$custom-light: #ba69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#981f7e",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 312.893,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4752,
    "c": 0.1832,
    "h": 338.6
  },
  "luminance": 0.09162
}

Semantic roles & 50–950 ramp

primary
#981F7E
secondary
#53C06A
accent
#E9633F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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