#982EA7#982EA7

#982EA7 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.1% C 0.199 H 322.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#982EA7
RGBrgb(152, 46, 167)
HSLhsl(293, 57%, 42%)
HSVhsv(293, 72%, 65%)
CMYKcmyk(9%, 72.5%, 0%, 34.5%)
CIE-LABlab(40.28, 59.21, -43.35)
CIE-LCHlch(40.28, 73.38, 323.79°)
OKLaboklab(51.11% 0.1574 -0.1211)
OKLCHoklch(51.11% 0.199 322.4)
XYZxyz(20.9002, 11.4206, 37.6553)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EA7 #3DA72E
analogous
#5C2EA7 #982EA7 #A72E7A
triadic
#982EA7 #A7982E #2EA798
tetradic
#982EA7 #A75C2E #3DA72E #2E7AA7
square
#982EA7 #A75C2E #3DA72E #2E7AA7
split-complementary
#982EA7 #7AA72E #2EA75C
monochromatic
#411447 #6C2177 #982EA7 #BB46CC #CD76D9

Accessibility & contrast

On white

6.40
#982EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#982EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EA7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EA7#FFFFFF#000000##FFFFFF
##982EA71.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#4063A4
Tritanopia (blue-blind)
#9A4468
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #982ea7;
/* rgb */ color: rgb(152, 46, 167);
/* oklch */ color: oklch(51.1% 0.199 322.4);
Tailwind
colors: {
  custom: {
    50: '#ba71c2',
    500: '#982ea7',
    950: '#000000',
  },
}
SCSS
$custom: #982ea7;
$custom-light: #ba71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#982ea7",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 292.562,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.19861,
    "h": 322.4
  },
  "luminance": 0.11419
}

Semantic roles & 50–950 ramp

primary
#982EA7
secondary
#7AC170
accent
#E0485B
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #982EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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