#981C9D#981C9D

#981C9D is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.208 H 326.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#981C9D
RGBrgb(152, 28, 157)
HSLhsl(298, 70%, 36%)
HSVhsv(298, 82%, 62%)
CMYKcmyk(3.2%, 82.2%, 0%, 38.4%)
CIE-LABlab(37.74, 63.01, -41.40)
CIE-LCHlch(37.74, 75.40, 326.69°)
OKLaboklab(49.1% 0.1734 -0.1153)
OKLCHoklch(49.1% 0.208 326.4)
XYZxyz(19.4496, 9.9416, 32.7863)
Luminance0.0994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C9D #219D1C
analogous
#581C9D #981C9D #9D1C62
triadic
#981C9D #9D981C #1C9D98
tetradic
#981C9D #9D581C #219D1C #1C629D
square
#981C9D #9D581C #219D1C #1C629D
split-complementary
#981C9D #629D1C #1C9D58
monochromatic
#330935 #661369 #981C9D #CA25D1 #DB53E0

Accessibility & contrast

On white

7.03
#981C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#981C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C9D
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C9D#FFFFFF#000000##FFFFFF
##981C9D1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#3E5E9A
Tritanopia (blue-blind)
#9C355E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #981c9d;
/* rgb */ color: rgb(152, 28, 157);
/* oklch */ color: oklch(49.1% 0.208 326.4);
Tailwind
colors: {
  custom: {
    50: '#ba6aba',
    500: '#981c9d',
    950: '#000000',
  },
}
SCSS
$custom: #981c9d;
$custom-light: #ba6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#981c9d",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 297.674,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49102,
    "c": 0.20817,
    "h": 326.4
  },
  "luminance": 0.0994
}

Semantic roles & 50–950 ramp

primary
#981C9D
secondary
#56C351
accent
#ED3B42
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #981C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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