#982DC2#982DC2

#982DC2 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.223 H 314.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#982DC2
RGBrgb(152, 45, 194)
HSLhsl(283, 62%, 47%)
HSVhsv(283, 77%, 76%)
CMYKcmyk(21.6%, 76.8%, 0%, 23.9%)
CIE-LABlab(41.92, 64.71, -56.66)
CIE-LCHlch(41.92, 86.01, 318.80°)
OKLaboklab(52.83% 0.1553 -0.1601)
OKLCHoklch(52.83% 0.223 314.1)
XYZxyz(23.6232, 12.4480, 52.1868)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982DC2 #57C22D
analogous
#4D2DC2 #982DC2 #C22DA2
triadic
#982DC2 #C2982D #2DC298
tetradic
#982DC2 #C24D2D #57C22D #2DA2C2
square
#982DC2 #C24D2D #57C22D #2DA2C2
split-complementary
#982DC2 #A2C22D #2DC24D
monochromatic
#4A165F #712190 #982DC2 #B355D7 #C986E3

Accessibility & contrast

On white

6.02
#982DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#982DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982DC2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982DC2#FFFFFF#000000##FFFFFF
##982DC21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #982dc2;
/* rgb */ color: rgb(152, 45, 194);
/* oklch */ color: oklch(52.8% 0.223 314.1);
Tailwind
colors: {
  custom: {
    50: '#bb72d5',
    500: '#982dc2',
    950: '#000000',
  },
}
SCSS
$custom: #982dc2;
$custom-light: #bb72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#982dc2",
  "rgb": {
    "r": 152,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 283.087,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5283,
    "c": 0.22305,
    "h": 314.1
  },
  "luminance": 0.12447
}

Semantic roles & 50–950 ramp

primary
#982DC2
secondary
#94CD7E
accent
#E54270
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #982DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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