#802A87#802A87

#802A87 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.164 H 324.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#802A87
RGBrgb(128, 42, 135)
HSLhsl(295, 53%, 35%)
HSVhsv(295, 69%, 53%)
CMYKcmyk(5.2%, 68.9%, 0%, 47.1%)
CIE-LABlab(33.97, 49.30, -34.18)
CIE-LCHlch(33.97, 59.99, 325.27°)
OKLaboklab(45.21% 0.134 -0.095)
OKLCHoklch(45.21% 0.164 324.7)
XYZxyz(14.1029, 7.9952, 23.7174)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A87 #31872A
analogous
#522A87 #802A87 #872A60
triadic
#802A87 #87802A #2A8780
tetradic
#802A87 #87522A #31872A #2A6087
square
#802A87 #87522A #31872A #2A6087
split-complementary
#802A87 #60872A #2A8752
monochromatic
#270D2A #541B58 #802A87 #AC39B6 #C55ECD

Accessibility & contrast

On white

8.08
#802A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#802A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A87
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A87#FFFFFF#000000##FFFFFF
##802A871.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802a87;
/* rgb */ color: rgb(128, 42, 135);
/* oklch */ color: oklch(45.2% 0.164 324.7);
Tailwind
colors: {
  custom: {
    50: '#a86baa',
    500: '#802a87',
    950: '#000000',
  },
}
SCSS
$custom: #802a87;
$custom-light: #a86baa;
$custom-dark: #000000;
JSON
{
  "hex": "#802a87",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 295.484,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45207,
    "c": 0.16426,
    "h": 324.7
  },
  "luminance": 0.07994
}

Semantic roles & 50–950 ramp

primary
#802A87
secondary
#61B35A
accent
#DC4C57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802A87

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

Preview Lab → · Contrast checker → · Palette generator →

#802A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva