#982EC2#982EC2

#982EC2 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.222 H 314.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#982EC2
RGBrgb(152, 46, 194)
HSLhsl(283, 62%, 47%)
HSVhsv(283, 76%, 76%)
CMYKcmyk(21.6%, 76.3%, 0%, 23.9%)
CIE-LABlab(42.04, 64.37, -56.46)
CIE-LCHlch(42.04, 85.63, 318.74°)
OKLaboklab(52.91% 0.1545 -0.1595)
OKLCHoklch(52.91% 0.222 314.1)
XYZxyz(23.6618, 12.5252, 52.1997)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EC2 #58C22E
analogous
#4E2EC2 #982EC2 #C22EA2
triadic
#982EC2 #C2982E #2EC298
tetradic
#982EC2 #C24E2E #58C22E #2EA2C2
square
#982EC2 #C24E2E #58C22E #2EA2C2
split-complementary
#982EC2 #A2C22E #2EC24E
monochromatic
#4A175F #712291 #982EC2 #B256D7 #C988E3

Accessibility & contrast

On white

5.99
#982EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#982EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EC2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EC2#FFFFFF#000000##FFFFFF
##982EC21.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#2266BF
Tritanopia (blue-blind)
#945077
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #982ec2;
/* rgb */ color: rgb(152, 46, 194);
/* oklch */ color: oklch(52.9% 0.222 314.1);
Tailwind
colors: {
  custom: {
    50: '#bb72d5',
    500: '#982ec2',
    950: '#000000',
  },
}
SCSS
$custom: #982ec2;
$custom-light: #bb72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#982ec2",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 282.973,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52914,
    "c": 0.22206,
    "h": 314.1
  },
  "luminance": 0.12524
}

Semantic roles & 50–950 ramp

primary
#982EC2
secondary
#95CC7F
accent
#E54371
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #982EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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