#802D9C#802D9C

#802D9C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.180 H 316.2°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#802D9C
RGBrgb(128, 45, 156)
HSLhsl(285, 55%, 39%)
HSVhsv(285, 71%, 61%)
CMYKcmyk(17.9%, 71.2%, 0%, 38.8%)
CIE-LABlab(35.73, 52.20, -44.23)
CIE-LCHlch(35.73, 68.42, 319.72°)
OKLaboklab(46.89% 0.1298 -0.1244)
OKLCHoklch(46.89% 0.18 316.2)
XYZxyz(15.8403, 8.8669, 32.3231)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D9C #499C2D
analogous
#492D9C #802D9C #9C2D81
triadic
#802D9C #9C802D #2D9C80
tetradic
#802D9C #9C492D #499C2D #2D819C
square
#802D9C #9C492D #499C2D #2D819C
split-complementary
#802D9C #819C2D #2D9C49
monochromatic
#32123D #591F6D #802D9C #A53FC8 #BB6ED5

Accessibility & contrast

On white

7.57
#802D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#802D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D9C
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D9C#FFFFFF#000000##FFFFFF
##802D9C1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#2D5699
Tritanopia (blue-blind)
#7E4361
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802d9c;
/* rgb */ color: rgb(128, 45, 156);
/* oklch */ color: oklch(46.9% 0.180 316.2);
Tailwind
colors: {
  custom: {
    50: '#a86dba',
    500: '#802d9c',
    950: '#000000',
  },
}
SCSS
$custom: #802d9c;
$custom-light: #a86dba;
$custom-dark: #000000;
JSON
{
  "hex": "#802d9c",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 284.865,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46885,
    "c": 0.1798,
    "h": 316.2
  },
  "luminance": 0.08866
}

Semantic roles & 50–950 ramp

primary
#802D9C
secondary
#7EBC68
accent
#DF496F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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