#802D9A#802D9A

#802D9A is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.178 H 316.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#802D9A
RGBrgb(128, 45, 154)
HSLhsl(286, 55%, 39%)
HSVhsv(286, 71%, 60%)
CMYKcmyk(16.9%, 70.8%, 0%, 39.6%)
CIE-LABlab(35.60, 51.78, -43.23)
CIE-LCHlch(35.60, 67.46, 320.14°)
OKLaboklab(46.75% 0.13 -0.1214)
OKLCHoklch(46.75% 0.178 316.9)
XYZxyz(15.6723, 8.7997, 31.4385)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D9A #479A2D
analogous
#4A2D9A #802D9A #9A2D7E
triadic
#802D9A #9A802D #2D9A80
tetradic
#802D9A #9A4A2D #479A2D #2D7E9A
square
#802D9A #9A4A2D #479A2D #2D7E9A
split-complementary
#802D9A #7E9A2D #2D9A4A
monochromatic
#31113B #591F6B #802D9A #A63EC7 #BC6DD4

Accessibility & contrast

On white

7.61
#802D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#802D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D9A
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D9A#FFFFFF#000000##FFFFFF
##802D9A1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#2F5697
Tritanopia (blue-blind)
#7F4260
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802d9a;
/* rgb */ color: rgb(128, 45, 154);
/* oklch */ color: oklch(46.7% 0.178 316.9);
Tailwind
colors: {
  custom: {
    50: '#a86db8',
    500: '#802d9a',
    950: '#000000',
  },
}
SCSS
$custom: #802d9a;
$custom-light: #a86db8;
$custom-dark: #000000;
JSON
{
  "hex": "#802d9a",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 285.688,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46749,
    "c": 0.1779,
    "h": 316.9
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#802D9A
secondary
#7BBB67
accent
#DE4A6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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