#981C8E#981C8E

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

Color values

HEX#981C8E
RGBrgb(152, 28, 142)
HSLhsl(305, 69%, 35%)
HSVhsv(305, 82%, 60%)
CMYKcmyk(0%, 81.6%, 6.6%, 40.4%)
CIE-LABlab(36.86, 60.61, -33.66)
CIE-LCHlch(36.86, 69.33, 330.95°)
OKLaboklab(48.19% 0.1739 -0.0928)
OKLCHoklch(48.19% 0.197 331.9)
XYZxyz(18.2467, 9.4605, 26.4510)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C8E #1C9826
analogous
#641C98 #981C8E #981C50
triadic
#981C8E #8E981C #1C8E98
tetradic
#981C8E #98641C #1C9826 #1C5098
square
#981C8E #98641C #1C9826 #1C5098
split-complementary
#981C8E #50981C #1C9864
monochromatic
#31092D #64125E #981C8E #CC26BE #DF50D3

Accessibility & contrast

On white

7.26
#981C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#981C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C8E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C8E#FFFFFF#000000##FFFFFF
##981C8E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#475D8B
Tritanopia (blue-blind)
#9F2D55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981c8e;
/* rgb */ color: rgb(152, 28, 142);
/* oklch */ color: oklch(48.2% 0.197 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981c8e',
    950: '#000000',
  },
}
SCSS
$custom: #981c8e;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981c8e",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 304.839,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48193,
    "c": 0.19708,
    "h": 331.9
  },
  "luminance": 0.09459
}

Semantic roles & 50–950 ramp

primary
#981C8E
secondary
#4EC158
accent
#EC4A3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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