#981A8D#981A8D

#981A8D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.198 H 332.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#981A8D
RGBrgb(152, 26, 141)
HSLhsl(305, 71%, 35%)
HSVhsv(305, 83%, 60%)
CMYKcmyk(0%, 82.9%, 7.2%, 40.4%)
CIE-LABlab(36.63, 60.95, -33.41)
CIE-LCHlch(36.63, 69.51, 331.27°)
OKLaboklab(48.01% 0.1753 -0.092)
OKLCHoklch(48.01% 0.198 332.3)
XYZxyz(18.1261, 9.3389, 26.0421)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A8D #1A9825
analogous
#641A98 #981A8D #981A4E
triadic
#981A8D #8D981A #1A8D98
tetradic
#981A8D #98641A #1A9825 #1A4E98
square
#981A8D #98641A #1A9825 #1A4E98
split-complementary
#981A8D #4E981A #1A9864
monochromatic
#2F082C #64115D #981A8D #CC23BD #E04CD3

Accessibility & contrast

On white

7.32
#981A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#981A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981A8D
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A8D#FFFFFF#000000##FFFFFF
##981A8D1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B90
Deuteranopia (green-blind)
#475C8A
Tritanopia (blue-blind)
#9F2B54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981a8d;
/* rgb */ color: rgb(152, 26, 141);
/* oklch */ color: oklch(48.0% 0.198 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981a8d',
    950: '#000000',
  },
}
SCSS
$custom: #981a8d;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981a8d",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 305.238,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.48013,
    "c": 0.19801,
    "h": 332.3
  },
  "luminance": 0.09337
}

Semantic roles & 50–950 ramp

primary
#981A8D
secondary
#4BC256
accent
#EE4A3A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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