#982EA1#982EA1

#982EA1 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.194 H 324.6°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#982EA1
RGBrgb(152, 46, 161)
HSLhsl(295, 56%, 41%)
HSVhsv(295, 71%, 63%)
CMYKcmyk(5.6%, 71.4%, 0%, 36.9%)
CIE-LABlab(39.92, 58.12, -40.33)
CIE-LCHlch(39.92, 70.74, 325.24°)
OKLaboklab(50.73% 0.1577 -0.1122)
OKLCHoklch(50.73% 0.194 324.6)
XYZxyz(20.3584, 11.2039, 34.8016)
Luminance0.1120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EA1 #37A12E
analogous
#5E2EA1 #982EA1 #A12E71
triadic
#982EA1 #A1982E #2EA198
tetradic
#982EA1 #A15E2E #37A12E #2E71A1
square
#982EA1 #A15E2E #37A12E #2E71A1
split-complementary
#982EA1 #71A12E #2EA15E
monochromatic
#3E1342 #6B2071 #982EA1 #BF43C9 #CF73D7

Accessibility & contrast

On white

6.48
#982EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#982EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EA1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EA1#FFFFFF#000000##FFFFFF
##982EA11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C56A4
Deuteranopia (green-blind)
#44629E
Tritanopia (blue-blind)
#9B4164
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #982ea1;
/* rgb */ color: rgb(152, 46, 161);
/* oklch */ color: oklch(50.7% 0.194 324.6);
Tailwind
colors: {
  custom: {
    50: '#ba71bd',
    500: '#982ea1',
    950: '#000000',
  },
}
SCSS
$custom: #982ea1;
$custom-light: #ba71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#982ea1",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 295.304,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50734,
    "c": 0.19354,
    "h": 324.6
  },
  "luminance": 0.11203
}

Semantic roles & 50–950 ramp

primary
#982EA1
secondary
#73BE6C
accent
#DF4955
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #982EA1

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

Preview Lab → · Contrast checker → · Palette generator →

#982EA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva