#982BA1#982BA1

#982BA1 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.5% C 0.197 H 324.6°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#982BA1
RGBrgb(152, 43, 161)
HSLhsl(295, 58%, 40%)
HSVhsv(295, 73%, 63%)
CMYKcmyk(5.6%, 73.3%, 0%, 36.9%)
CIE-LABlab(39.54, 59.20, -40.93)
CIE-LCHlch(39.54, 71.97, 325.34°)
OKLaboklab(50.46% 0.1606 -0.114)
OKLCHoklch(50.46% 0.197 324.6)
XYZxyz(20.2453, 10.9776, 34.7639)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982BA1 #34A12B
analogous
#5D2BA1 #982BA1 #A12B6F
triadic
#982BA1 #A1982B #2BA198
tetradic
#982BA1 #A15D2B #34A12B #2B6FA1
square
#982BA1 #A15D2B #34A12B #2B6FA1
split-complementary
#982BA1 #6FA12B #2BA15D
monochromatic
#3D1140 #6A1E71 #982BA1 #C13ECB #D06ED8

Accessibility & contrast

On white

6.57
#982BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#982BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982BA1
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982BA1#FFFFFF#000000##FFFFFF
##982BA11.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0155A4
Deuteranopia (green-blind)
#42629E
Tritanopia (blue-blind)
#9B3F64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #982ba1;
/* rgb */ color: rgb(152, 43, 161);
/* oklch */ color: oklch(50.5% 0.197 324.6);
Tailwind
colors: {
  custom: {
    50: '#ba70bd',
    500: '#982ba1',
    950: '#000000',
  },
}
SCSS
$custom: #982ba1;
$custom-light: #ba70bd;
$custom-dark: #000000;
JSON
{
  "hex": "#982ba1",
  "rgb": {
    "r": 152,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 295.424,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.50464,
    "c": 0.19697,
    "h": 324.6
  },
  "luminance": 0.10976
}

Semantic roles & 50–950 ramp

primary
#982BA1
secondary
#6FBF69
accent
#E14752
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #982BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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