#802D96#802D96

#802D96 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.174 H 318.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#802D96
RGBrgb(128, 45, 150)
HSLhsl(287, 54%, 38%)
HSVhsv(287, 70%, 59%)
CMYKcmyk(14.7%, 70%, 0%, 41.2%)
CIE-LABlab(35.34, 50.97, -41.21)
CIE-LCHlch(35.34, 65.55, 321.04°)
OKLaboklab(46.48% 0.1303 -0.1155)
OKLCHoklch(46.48% 0.174 318.4)
XYZxyz(15.3447, 8.6687, 29.7132)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D96 #43962D
analogous
#4C2D96 #802D96 #962D77
triadic
#802D96 #96802D #2D9680
tetradic
#802D96 #964C2D #43962D #2D7796
square
#802D96 #964C2D #43962D #2D7796
split-complementary
#802D96 #77962D #2D964C
monochromatic
#301138 #581F67 #802D96 #A83CC4 #BD6BD3

Accessibility & contrast

On white

7.68
#802D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#802D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D96
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D96#FFFFFF#000000##FFFFFF
##802D961.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#325694
Tritanopia (blue-blind)
#80415E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802d96;
/* rgb */ color: rgb(128, 45, 150);
/* oklch */ color: oklch(46.5% 0.174 318.4);
Tailwind
colors: {
  custom: {
    50: '#a86db5',
    500: '#802d96',
    950: '#000000',
  },
}
SCSS
$custom: #802d96;
$custom-light: #a86db5;
$custom-dark: #000000;
JSON
{
  "hex": "#802d96",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 287.429,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46483,
    "c": 0.17412,
    "h": 318.4
  },
  "luminance": 0.08668
}

Semantic roles & 50–950 ramp

primary
#802D96
secondary
#77B965
accent
#DD4B69
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802D96

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

Preview Lab → · Contrast checker → · Palette generator →

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