#981E9D#981E9D

#981E9D is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.207 H 326.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#981E9D
RGBrgb(152, 30, 157)
HSLhsl(298, 68%, 37%)
HSVhsv(298, 81%, 62%)
CMYKcmyk(3.2%, 80.9%, 0%, 38.4%)
CIE-LABlab(37.91, 62.50, -41.12)
CIE-LCHlch(37.91, 74.82, 326.66°)
OKLaboklab(49.23% 0.1719 -0.1144)
OKLCHoklch(49.23% 0.207 326.3)
XYZxyz(19.4986, 10.0397, 32.8026)
Luminance0.1004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E9D #239D1E
analogous
#591E9D #981E9D #9D1E63
triadic
#981E9D #9D981E #1E9D98
tetradic
#981E9D #9D591E #239D1E #1E639D
square
#981E9D #9D591E #239D1E #1E639D
split-complementary
#981E9D #639D1E #1E9D59
monochromatic
#350A36 #66146A #981E9D #CA28D0 #D957DF

Accessibility & contrast

On white

6.98
#981E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#981E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981E9D
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E9D#FFFFFF#000000##FFFFFF
##981E9D1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#3F5E9A
Tritanopia (blue-blind)
#9C365E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #981e9d;
/* rgb */ color: rgb(152, 30, 157);
/* oklch */ color: oklch(49.2% 0.207 326.3);
Tailwind
colors: {
  custom: {
    50: '#ba6bba',
    500: '#981e9d',
    950: '#000000',
  },
}
SCSS
$custom: #981e9d;
$custom-light: #ba6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#981e9d",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 297.638,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49227,
    "c": 0.20654,
    "h": 326.3
  },
  "luminance": 0.10038
}

Semantic roles & 50–950 ramp

primary
#981E9D
secondary
#59C254
accent
#EB3D44
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #981E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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