#981A8A#981A8A

#981A8A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.8% C 0.196 H 333.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#981A8A
RGBrgb(152, 26, 138)
HSLhsl(307, 71%, 35%)
HSVhsv(307, 83%, 60%)
CMYKcmyk(0%, 82.9%, 9.2%, 40.4%)
CIE-LABlab(36.46, 60.50, -31.82)
CIE-LCHlch(36.46, 68.36, 332.25°)
OKLaboklab(47.84% 0.1753 -0.0874)
OKLCHoklch(47.84% 0.196 333.5)
XYZxyz(17.9059, 9.2508, 24.8824)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A8A #1A9828
analogous
#671A98 #981A8A #981A4B
triadic
#981A8A #8A981A #1A8A98
tetradic
#981A8A #98671A #1A9828 #1A4B98
square
#981A8A #98671A #1A9828 #1A4B98
split-complementary
#981A8A #4B981A #1A9867
monochromatic
#2F082B #64115B #981A8A #CC23B9 #E04CD0

Accessibility & contrast

On white

7.37
#981A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#981A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981A8A
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A8A#FFFFFF#000000##FFFFFF
##981A8A1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#495C87
Tritanopia (blue-blind)
#9F2953
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981a8a;
/* rgb */ color: rgb(152, 26, 138);
/* oklch */ color: oklch(47.8% 0.196 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba68ac',
    500: '#981a8a',
    950: '#000000',
  },
}
SCSS
$custom: #981a8a;
$custom-light: #ba68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#981a8a",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 306.667,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47841,
    "c": 0.19588,
    "h": 333.5
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#981A8A
secondary
#4BC259
accent
#EE4E3A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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