#802D94#802D94

#802D94 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.172 H 319.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#802D94
RGBrgb(128, 45, 148)
HSLhsl(288, 53%, 38%)
HSVhsv(288, 70%, 58%)
CMYKcmyk(13.5%, 69.6%, 0%, 42%)
CIE-LABlab(35.21, 50.57, -40.19)
CIE-LCHlch(35.21, 64.60, 321.52°)
OKLaboklab(46.35% 0.1304 -0.1126)
OKLCHoklch(46.35% 0.172 319.2)
XYZxyz(15.1851, 8.6048, 28.8723)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D94 #41942D
analogous
#4D2D94 #802D94 #942D74
triadic
#802D94 #94802D #2D9480
tetradic
#802D94 #944D2D #41942D #2D7494
square
#802D94 #944D2D #41942D #2D7494
split-complementary
#802D94 #74942D #2D944D
monochromatic
#2F1036 #571F65 #802D94 #A93BC3 #BD6AD2

Accessibility & contrast

On white

7.72
#802D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#802D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D94
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D94#FFFFFF#000000##FFFFFF
##802D941.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#345692
Tritanopia (blue-blind)
#80405D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802d94;
/* rgb */ color: rgb(128, 45, 148);
/* oklch */ color: oklch(46.4% 0.172 319.2);
Tailwind
colors: {
  custom: {
    50: '#a86db4',
    500: '#802d94',
    950: '#000000',
  },
}
SCSS
$custom: #802d94;
$custom-light: #a86db4;
$custom-dark: #000000;
JSON
{
  "hex": "#802d94",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 288.35,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46352,
    "c": 0.17223,
    "h": 319.2
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

primary
#802D94
secondary
#75B864
accent
#DD4B67
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802D94

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

Preview Lab → · Contrast checker → · Palette generator →

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