#981A8B#981A8B

#981A8B is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.197 H 333.1°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#981A8B
RGBrgb(152, 26, 139)
HSLhsl(306, 71%, 35%)
HSVhsv(306, 83%, 60%)
CMYKcmyk(0%, 82.9%, 8.6%, 40.4%)
CIE-LABlab(36.52, 60.65, -32.35)
CIE-LCHlch(36.52, 68.74, 331.92°)
OKLaboklab(47.9% 0.1753 -0.089)
OKLCHoklch(47.9% 0.197 333.1)
XYZxyz(17.9786, 9.2799, 25.2654)
Luminance0.0928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A8B #1A9827
analogous
#661A98 #981A8B #981A4C
triadic
#981A8B #8B981A #1A8B98
tetradic
#981A8B #98661A #1A9827 #1A4C98
square
#981A8B #98661A #1A9827 #1A4C98
split-complementary
#981A8B #4C981A #1A9866
monochromatic
#2F082B #64115B #981A8B #CC23BB #E04CD1

Accessibility & contrast

On white

7.35
#981A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#981A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981A8B
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A8B#FFFFFF#000000##FFFFFF
##981A8B1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8E
Deuteranopia (green-blind)
#485C88
Tritanopia (blue-blind)
#9F2A53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981a8b;
/* rgb */ color: rgb(152, 26, 139);
/* oklch */ color: oklch(47.9% 0.197 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba68ad',
    500: '#981a8b',
    950: '#000000',
  },
}
SCSS
$custom: #981a8b;
$custom-light: #ba68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#981a8b",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 306.19,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47898,
    "c": 0.19659,
    "h": 333.1
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#981A8B
secondary
#4BC258
accent
#EE4D3A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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