#982FAB#982FAB

#982FAB is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.201 H 321.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#982FAB
RGBrgb(152, 47, 171)
HSLhsl(291, 57%, 43%)
HSVhsv(291, 73%, 67%)
CMYKcmyk(11.1%, 72.5%, 0%, 32.9%)
CIE-LABlab(40.65, 59.58, -45.14)
CIE-LCHlch(40.65, 74.75, 322.85°)
OKLaboklab(51.45% 0.1562 -0.1263)
OKLCHoklch(51.45% 0.201 321)
XYZxyz(21.3153, 11.6498, 39.6461)
Luminance0.1165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982FAB #42AB2F
analogous
#5A2FAB #982FAB #AB2F80
triadic
#982FAB #AB982F #2FAB98
tetradic
#982FAB #AB5A2F #42AB2F #2F80AB
square
#982FAB #AB5A2F #42AB2F #2F80AB
split-complementary
#982FAB #80AB2F #2FAB5A
monochromatic
#43154B #6D227B #982FAB #B94ACD #CC7ADA

Accessibility & contrast

On white

6.31
#982FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#982FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982FAB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982FAB#FFFFFF#000000##FFFFFF
##982FAB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#3D64A8
Tritanopia (blue-blind)
#99466A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #982fab;
/* rgb */ color: rgb(152, 47, 171);
/* oklch */ color: oklch(51.5% 0.201 321.0);
Tailwind
colors: {
  custom: {
    50: '#ba72c5',
    500: '#982fab',
    950: '#000000',
  },
}
SCSS
$custom: #982fab;
$custom-light: #ba72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#982fab",
  "rgb": {
    "r": 152,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 290.806,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51451,
    "c": 0.2009,
    "h": 321
  },
  "luminance": 0.11649
}

Semantic roles & 50–950 ramp

primary
#982FAB
secondary
#7FC373
accent
#E0485F
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #982FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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