#981A8E#981A8E

#981A8E is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.199 H 331.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#981A8E
RGBrgb(152, 26, 142)
HSLhsl(305, 71%, 35%)
HSVhsv(305, 83%, 60%)
CMYKcmyk(0%, 82.9%, 6.6%, 40.4%)
CIE-LABlab(36.68, 61.11, -33.93)
CIE-LCHlch(36.68, 69.90, 330.96°)
OKLaboklab(48.07% 0.1753 -0.0935)
OKLCHoklch(48.07% 0.199 331.9)
XYZxyz(18.2008, 9.3687, 26.4357)
Luminance0.0937 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A8E #1A9824
analogous
#631A98 #981A8E #981A4F
triadic
#981A8E #8E981A #1A8E98
tetradic
#981A8E #98631A #1A9824 #1A4F98
square
#981A8E #98631A #1A9824 #1A4F98
split-complementary
#981A8E #4F981A #1A9863
monochromatic
#2F082C #64115D #981A8E #CC23BF #E04CD5

Accessibility & contrast

On white

7.31
#981A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981A8E
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A8E#FFFFFF#000000##FFFFFF
##981A8E1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#475C8B
Tritanopia (blue-blind)
#9F2C55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981a8e;
/* rgb */ color: rgb(152, 26, 142);
/* oklch */ color: oklch(48.1% 0.199 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981a8e',
    950: '#000000',
  },
}
SCSS
$custom: #981a8e;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981a8e",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 304.762,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.48071,
    "c": 0.19872,
    "h": 331.9
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#981A8E
secondary
#4BC255
accent
#EE483A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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