#981E98#981E98

#981E98 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.203 H 328.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#981E98
RGBrgb(152, 30, 152)
HSLhsl(300, 67%, 36%)
HSVhsv(300, 80%, 60%)
CMYKcmyk(0%, 80.3%, 0%, 40.4%)
CIE-LABlab(37.61, 61.68, -38.57)
CIE-LCHlch(37.61, 72.74, 327.98°)
OKLaboklab(48.92% 0.1722 -0.107)
OKLCHoklch(48.92% 0.203 328.1)
XYZxyz(19.0804, 9.8724, 30.6003)
Luminance0.0987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E98 #1E981E
analogous
#5B1E98 #981E98 #981E5B
triadic
#981E98 #98981E #1E9898
tetradic
#981E98 #985B1E #1E981E #1E5B98
square
#981E98 #985B1E #1E981E #1E5B98
split-complementary
#981E98 #5B981E #1E985B
monochromatic
#320A32 #651465 #981E98 #CB28CB #DD53DD

Accessibility & contrast

On white

7.06
#981E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#981E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981E98
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E98#FFFFFF#000000##FFFFFF
##981E981.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#425E95
Tritanopia (blue-blind)
#9D345C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #981e98;
/* rgb */ color: rgb(152, 30, 152);
/* oklch */ color: oklch(48.9% 0.203 328.1);
Tailwind
colors: {
  custom: {
    50: '#ba6ab7',
    500: '#981e98',
    950: '#000000',
  },
}
SCSS
$custom: #981e98;
$custom-light: #ba6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#981e98",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 300,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48917,
    "c": 0.20275,
    "h": 328.1
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#981E98
secondary
#51C051
accent
#EA3E3E
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #981E98

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

Preview Lab → · Contrast checker → · Palette generator →

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