#981D98#981D98

#981D98 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.9% C 0.204 H 328.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#981D98
RGBrgb(152, 29, 152)
HSLhsl(300, 68%, 35%)
HSVhsv(300, 81%, 60%)
CMYKcmyk(0%, 80.9%, 0%, 40.4%)
CIE-LABlab(37.52, 61.94, -38.71)
CIE-LCHlch(37.52, 73.04, 327.99°)
OKLaboklab(48.85% 0.1729 -0.1074)
OKLCHoklch(48.85% 0.204 328.2)
XYZxyz(19.0555, 9.8226, 30.5920)
Luminance0.0982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D98 #1D981D
analogous
#5A1D98 #981D98 #981D5A
triadic
#981D98 #98981D #1D9898
tetradic
#981D98 #985A1D #1D981D #1D5A98
square
#981D98 #985A1D #1D981D #1D5A98
split-complementary
#981D98 #5A981D #1D985A
monochromatic
#310931 #651365 #981D98 #CB27CB #DE52DE

Accessibility & contrast

On white

7.08
#981D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#981D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981D98
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D98#FFFFFF#000000##FFFFFF
##981D981.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981d98;
/* rgb */ color: rgb(152, 29, 152);
/* oklch */ color: oklch(48.9% 0.204 328.2);
Tailwind
colors: {
  custom: {
    50: '#ba6ab7',
    500: '#981d98',
    950: '#000000',
  },
}
SCSS
$custom: #981d98;
$custom-light: #ba6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#981d98",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 300,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48853,
    "c": 0.20359,
    "h": 328.2
  },
  "luminance": 0.09821
}

Semantic roles & 50–950 ramp

primary
#981D98
secondary
#50C150
accent
#EB3D3D
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #981D98

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

Preview Lab → · Contrast checker → · Palette generator →

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