#802988#802988

#802988 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.166 H 324.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#802988
RGBrgb(128, 41, 136)
HSLhsl(295, 54%, 35%)
HSVhsv(295, 70%, 53%)
CMYKcmyk(5.9%, 69.9%, 0%, 46.7%)
CIE-LABlab(33.89, 49.90, -34.93)
CIE-LCHlch(33.89, 60.91, 325.01°)
OKLaboklab(45.16% 0.1352 -0.0972)
OKLCHoklch(45.16% 0.166 324.3)
XYZxyz(14.1386, 7.9535, 24.0783)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802988 #318829
analogous
#502988 #802988 #882961
triadic
#802988 #888029 #298880
tetradic
#802988 #885029 #318829 #296188
square
#802988 #885029 #318829 #296188
split-complementary
#802988 #618829 #298850
monochromatic
#270D2A #541B59 #802988 #AC37B7 #C55DCE

Accessibility & contrast

On white

8.11
#802988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#802988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802988
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802988#FFFFFF#000000##FFFFFF
##8029881.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498B
Deuteranopia (green-blind)
#3A5386
Tritanopia (blue-blind)
#833855
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802988;
/* rgb */ color: rgb(128, 41, 136);
/* oklch */ color: oklch(45.2% 0.166 324.3);
Tailwind
colors: {
  custom: {
    50: '#a86bab',
    500: '#802988',
    950: '#000000',
  },
}
SCSS
$custom: #802988;
$custom-light: #a86bab;
$custom-dark: #000000;
JSON
{
  "hex": "#802988",
  "rgb": {
    "r": 128,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 294.947,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45164,
    "c": 0.16646,
    "h": 324.3
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#802988
secondary
#61B459
accent
#DD4B57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802988

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

Preview Lab → · Contrast checker → · Palette generator →

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