#802D9F#802D9F

#802D9F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.183 H 315.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#802D9F
RGBrgb(128, 45, 159)
HSLhsl(284, 56%, 40%)
HSVhsv(284, 72%, 62%)
CMYKcmyk(19.5%, 71.7%, 0%, 37.6%)
CIE-LABlab(35.93, 52.82, -45.73)
CIE-LCHlch(35.93, 69.86, 319.11°)
OKLaboklab(47.09% 0.1296 -0.1288)
OKLCHoklch(47.09% 0.183 315.2)
XYZxyz(16.0975, 8.9698, 33.6775)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D9F #4C9F2D
analogous
#472D9F #802D9F #9F2D85
triadic
#802D9F #9F802D #2D9F80
tetradic
#802D9F #9F472D #4C9F2D #2D859F
square
#802D9F #9F472D #4C9F2D #2D859F
split-complementary
#802D9F #859F2D #2D9F47
monochromatic
#331240 #5A206F #802D9F #A440C9 #BB70D6

Accessibility & contrast

On white

7.52
#802D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#802D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D9F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D9F#FFFFFF#000000##FFFFFF
##802D9F1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#2A579C
Tritanopia (blue-blind)
#7E4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802d9f;
/* rgb */ color: rgb(128, 45, 159);
/* oklch */ color: oklch(47.1% 0.183 315.2);
Tailwind
colors: {
  custom: {
    50: '#a86ebc',
    500: '#802d9f',
    950: '#000000',
  },
}
SCSS
$custom: #802d9f;
$custom-light: #a86ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#802d9f",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 283.684,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.47091,
    "c": 0.18266,
    "h": 315.2
  },
  "luminance": 0.08969
}

Semantic roles & 50–950 ramp

primary
#802D9F
secondary
#81BE6A
accent
#DF4972
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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