#981F8B#981F8B

#981F8B is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.192 H 333.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#981F8B
RGBrgb(152, 31, 139)
HSLhsl(306, 66%, 36%)
HSVhsv(306, 80%, 60%)
CMYKcmyk(0%, 79.6%, 8.6%, 40.4%)
CIE-LABlab(36.97, 59.35, -31.64)
CIE-LCHlch(36.97, 67.25, 331.94°)
OKLaboklab(48.22% 0.1715 -0.0869)
OKLCHoklch(48.22% 0.192 333.1)
XYZxyz(18.0992, 9.5210, 25.3056)
Luminance0.0952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F8B #1F982C
analogous
#681F98 #981F8B #981F4E
triadic
#981F8B #8B981F #1F8B98
tetradic
#981F8B #98681F #1F982C #1F4E98
square
#981F8B #98681F #1F982C #1F4E98
split-complementary
#981F8B #4E981F #1F9868
monochromatic
#320A2E #65155D #981F8B #CB29B9 #DC55CE

Accessibility & contrast

On white

7.23
#981F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#981F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F8B
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F8B#FFFFFF#000000##FFFFFF
##981F8B1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#4A5D88
Tritanopia (blue-blind)
#9F2D54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981f8b;
/* rgb */ color: rgb(152, 31, 139);
/* oklch */ color: oklch(48.2% 0.192 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba6aad',
    500: '#981f8b',
    950: '#000000',
  },
}
SCSS
$custom: #981f8b;
$custom-light: #ba6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#981f8b",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 306.446,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4822,
    "c": 0.19227,
    "h": 333.1
  },
  "luminance": 0.09519
}

Semantic roles & 50–950 ramp

primary
#981F8B
secondary
#53C05F
accent
#E9513F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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