#982EB5#982EB5

#982EB5 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.211 H 317.9°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#982EB5
RGBrgb(152, 46, 181)
HSLhsl(287, 59%, 45%)
HSVhsv(287, 75%, 71%)
CMYKcmyk(16%, 74.6%, 0%, 29%)
CIE-LABlab(41.16, 61.83, -50.25)
CIE-LCHlch(41.16, 79.67, 320.90°)
OKLaboklab(52.02% 0.1563 -0.1412)
OKLCHoklch(52.02% 0.211 317.9)
XYZxyz(22.2652, 11.9666, 44.8441)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982EB5 #4BB52E
analogous
#552EB5 #982EB5 #B52E8F
triadic
#982EB5 #B5982E #2EB598
tetradic
#982EB5 #B5552E #4BB52E #2E8FB5
square
#982EB5 #B5552E #4BB52E #2E8FB5
split-complementary
#982EB5 #8FB52E #2EB555
monochromatic
#461553 #6F2284 #982EB5 #B64ED2 #CA7FDE

Accessibility & contrast

On white

6.19
#982EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#982EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982EB5
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982EB5#FFFFFF#000000##FFFFFF
##982EB51.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#3364B2
Tritanopia (blue-blind)
#974A70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #982eb5;
/* rgb */ color: rgb(152, 46, 181);
/* oklch */ color: oklch(52.0% 0.211 317.9);
Tailwind
colors: {
  custom: {
    50: '#ba72cc',
    500: '#982eb5',
    950: '#000000',
  },
}
SCSS
$custom: #982eb5;
$custom-light: #ba72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#982eb5",
  "rgb": {
    "r": 152,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 287.111,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52017,
    "c": 0.21067,
    "h": 317.9
  },
  "luminance": 0.11966
}

Semantic roles & 50–950 ramp

primary
#982EB5
secondary
#89C778
accent
#E34567
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #982EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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