#982797#982797

#982797 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.193 H 328.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#982797
RGBrgb(152, 39, 151)
HSLhsl(301, 59%, 37%)
HSVhsv(301, 74%, 60%)
CMYKcmyk(0%, 74.3%, 0.7%, 40.4%)
CIE-LABlab(38.48, 58.83, -36.57)
CIE-LCHlch(38.48, 69.28, 328.13°)
OKLaboklab(49.52% 0.1646 -0.1013)
OKLCHoklch(49.52% 0.193 328.4)
XYZxyz(19.2601, 10.3622, 30.2578)
Luminance0.1036 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982797 #279828
analogous
#612798 #982797 #98275F
triadic
#982797 #979827 #279798
tetradic
#982797 #986127 #279828 #275F98
square
#982797 #986127 #279828 #275F98
split-complementary
#982797 #5F9827 #279861
monochromatic
#370E36 #671B67 #982797 #C933C7 #D763D6

Accessibility & contrast

On white

6.84
#982797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#982797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982797
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982797#FFFFFF#000000##FFFFFF
##9827971.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11519A
Deuteranopia (green-blind)
#476094
Tritanopia (blue-blind)
#9D385D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #982797;
/* rgb */ color: rgb(152, 39, 151);
/* oklch */ color: oklch(49.5% 0.193 328.4);
Tailwind
colors: {
  custom: {
    50: '#ba6eb6',
    500: '#982797',
    950: '#000000',
  },
}
SCSS
$custom: #982797;
$custom-light: #ba6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#982797",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 300.531,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4952,
    "c": 0.19329,
    "h": 328.4
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

primary
#982797
secondary
#5EBC5F
accent
#E24745
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #982797

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

Preview Lab → · Contrast checker → · Palette generator →

#982797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva