#982EC3#982EC3

#982EC3 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.223 H 313.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#982EC3
RGBrgb(152, 46, 195)
HSLhsl(283, 62%, 47%)
HSVhsv(283, 76%, 76%)
CMYKcmyk(22.1%, 76.4%, 0%, 23.5%)
CIE-LABlab(42.11, 64.57, -56.93)
CIE-LCHlch(42.11, 86.09, 318.60°)
OKLaboklab(52.99% 0.1543 -0.1609)
OKLCHoklch(52.99% 0.223 313.8)
XYZxyz(23.7745, 12.5703, 52.7931)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EC3 #59C32E
analogous
#4E2EC3 #982EC3 #C32EA3
triadic
#982EC3 #C3982E #2EC398
tetradic
#982EC3 #C34E2E #59C32E #2EA3C3
square
#982EC3 #C34E2E #59C32E #2EA3C3
split-complementary
#982EC3 #A3C32E #2EC34E
monochromatic
#4B1760 #712291 #982EC3 #B257D7 #C988E3

Accessibility & contrast

On white

5.98
#982EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#982EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EC3
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EC3#FFFFFF#000000##FFFFFF
##982EC31.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC7
Deuteranopia (green-blind)
#2066C0
Tritanopia (blue-blind)
#945178
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #982ec3;
/* rgb */ color: rgb(152, 46, 195);
/* oklch */ color: oklch(53.0% 0.223 313.8);
Tailwind
colors: {
  custom: {
    50: '#bb72d6',
    500: '#982ec3',
    950: '#000000',
  },
}
SCSS
$custom: #982ec3;
$custom-light: #bb72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#982ec3",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 282.685,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52985,
    "c": 0.22294,
    "h": 313.8
  },
  "luminance": 0.1257
}

Semantic roles & 50–950 ramp

primary
#982EC3
secondary
#96CD80
accent
#E54372
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #982EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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