#982EA2#982EA2

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

Color values

HEX#982EA2
RGBrgb(152, 46, 162)
HSLhsl(295, 56%, 41%)
HSVhsv(295, 72%, 64%)
CMYKcmyk(6.2%, 71.6%, 0%, 36.5%)
CIE-LABlab(39.98, 58.30, -40.83)
CIE-LCHlch(39.98, 71.18, 324.99°)
OKLaboklab(50.8% 0.1576 -0.1137)
OKLCHoklch(50.8% 0.194 324.2)
XYZxyz(20.4469, 11.2393, 35.2678)
Luminance0.1124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EA2 #38A22E
analogous
#5E2EA2 #982EA2 #A22E72
triadic
#982EA2 #A2982E #2EA298
tetradic
#982EA2 #A25E2E #38A22E #2E72A2
square
#982EA2 #A25E2E #38A22E #2E72A2
split-complementary
#982EA2 #72A22E #2EA25E
monochromatic
#3F1343 #6B2072 #982EA2 #BE43CA #CF73D7

Accessibility & contrast

On white

6.47
#982EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#982EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EA2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EA2#FFFFFF#000000##FFFFFF
##982EA21.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0856A5
Deuteranopia (green-blind)
#43629F
Tritanopia (blue-blind)
#9B4265
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #982ea2;
/* rgb */ color: rgb(152, 46, 162);
/* oklch */ color: oklch(50.8% 0.194 324.2);
Tailwind
colors: {
  custom: {
    50: '#ba71be',
    500: '#982ea2',
    950: '#000000',
  },
}
SCSS
$custom: #982ea2;
$custom-light: #ba71be;
$custom-dark: #000000;
JSON
{
  "hex": "#982ea2",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 294.828,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50796,
    "c": 0.19438,
    "h": 324.2
  },
  "luminance": 0.11238
}

Semantic roles & 50–950 ramp

primary
#982EA2
secondary
#74BF6D
accent
#DF4956
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #982EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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