#802F87#802F87

#802F87 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.157 H 324.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#802F87
RGBrgb(128, 47, 135)
HSLhsl(295, 48%, 36%)
HSVhsv(295, 65%, 53%)
CMYKcmyk(5.2%, 65.2%, 0%, 47.1%)
CIE-LABlab(34.75, 47.14, -32.95)
CIE-LCHlch(34.75, 57.52, 325.05°)
OKLaboklab(45.77% 0.1281 -0.0914)
OKLCHoklch(45.77% 0.157 324.5)
XYZxyz(14.2914, 8.3723, 23.7802)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F87 #36872F
analogous
#542F87 #802F87 #872F62
triadic
#802F87 #87802F #2F8780
tetradic
#802F87 #87542F #36872F #2F6287
square
#802F87 #87542F #36872F #2F6287
split-complementary
#802F87 #62872F #2F8754
monochromatic
#2A0F2C #551F5A #802F87 #AB3FB4 #C266CA

Accessibility & contrast

On white

7.85
#802F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#802F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F87
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F87#FFFFFF#000000##FFFFFF
##802F871.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B8A
Deuteranopia (green-blind)
#3E5585
Tritanopia (blue-blind)
#833C57
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802f87;
/* rgb */ color: rgb(128, 47, 135);
/* oklch */ color: oklch(45.8% 0.157 324.5);
Tailwind
colors: {
  custom: {
    50: '#a86eaa',
    500: '#802f87',
    950: '#000000',
  },
}
SCSS
$custom: #802f87;
$custom-light: #a86eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#802f87",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 295.227,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45765,
    "c": 0.15735,
    "h": 324.5
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#802F87
secondary
#67B161
accent
#D8505B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802F87

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

Preview Lab → · Contrast checker → · Palette generator →

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