#802987#802987

#802987 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.166 H 324.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#802987
RGBrgb(128, 41, 135)
HSLhsl(296, 53%, 35%)
HSVhsv(296, 70%, 53%)
CMYKcmyk(5.2%, 69.6%, 0%, 47.1%)
CIE-LABlab(33.83, 49.71, -34.41)
CIE-LCHlch(33.83, 60.46, 325.31°)
OKLaboklab(45.1% 0.1352 -0.0956)
OKLCHoklch(45.1% 0.166 324.7)
XYZxyz(14.0678, 7.9252, 23.7057)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802987 #308729
analogous
#512987 #802987 #87295F
triadic
#802987 #878029 #298780
tetradic
#802987 #875129 #308729 #295F87
square
#802987 #875129 #308729 #295F87
split-complementary
#802987 #5F8729 #298751
monochromatic
#270C29 #531B58 #802987 #AD37B6 #C55DCE

Accessibility & contrast

On white

8.12
#802987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#802987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802987
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802987#FFFFFF#000000##FFFFFF
##8029871.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#833855
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802987;
/* rgb */ color: rgb(128, 41, 135);
/* oklch */ color: oklch(45.1% 0.166 324.7);
Tailwind
colors: {
  custom: {
    50: '#a86baa',
    500: '#802987',
    950: '#000000',
  },
}
SCSS
$custom: #802987;
$custom-light: #a86baa;
$custom-dark: #000000;
JSON
{
  "hex": "#802987",
  "rgb": {
    "r": 128,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 295.532,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45102,
    "c": 0.16557,
    "h": 324.7
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#802987
secondary
#5FB359
accent
#DD4B56
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802987

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

Preview Lab → · Contrast checker → · Palette generator →

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