#982EB2#982EB2

#982EB2 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.208 H 318.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#982EB2
RGBrgb(152, 46, 178)
HSLhsl(288, 59%, 44%)
HSVhsv(288, 74%, 70%)
CMYKcmyk(14.6%, 74.2%, 0%, 30.2%)
CIE-LABlab(40.97, 61.26, -48.79)
CIE-LCHlch(40.97, 78.31, 321.47°)
OKLaboklab(51.82% 0.1566 -0.137)
OKLCHoklch(51.82% 0.208 318.8)
XYZxyz(21.9607, 11.8448, 43.2404)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EB2 #48B22E
analogous
#562EB2 #982EB2 #B22E8A
triadic
#982EB2 #B2982E #2EB298
tetradic
#982EB2 #B2562E #48B22E #2E8AB2
square
#982EB2 #B2562E #48B22E #2E8AB2
split-complementary
#982EB2 #8AB22E #2EB256
monochromatic
#451551 #6E2181 #982EB2 #B74CD1 #CA7DDD

Accessibility & contrast

On white

6.23
#982EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#982EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EB2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EB2#FFFFFF#000000##FFFFFF
##982EB21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#98496E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #982eb2;
/* rgb */ color: rgb(152, 46, 178);
/* oklch */ color: oklch(51.8% 0.208 318.8);
Tailwind
colors: {
  custom: {
    50: '#ba72ca',
    500: '#982eb2',
    950: '#000000',
  },
}
SCSS
$custom: #982eb2;
$custom-light: #ba72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#982eb2",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 288.182,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51816,
    "c": 0.20806,
    "h": 318.8
  },
  "luminance": 0.11844
}

Semantic roles & 50–950 ramp

primary
#982EB2
secondary
#86C676
accent
#E24664
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #982EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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