#802D8F#802D8F

#802D8F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.168 H 321.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#802D8F
RGBrgb(128, 45, 143)
HSLhsl(291, 52%, 37%)
HSVhsv(291, 69%, 56%)
CMYKcmyk(10.5%, 68.5%, 0%, 43.9%)
CIE-LABlab(34.90, 49.57, -37.63)
CIE-LCHlch(34.90, 62.24, 322.80°)
OKLaboklab(46.03% 0.1305 -0.1051)
OKLCHoklch(46.03% 0.168 321.2)
XYZxyz(14.7978, 8.4499, 26.8328)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D8F #3C8F2D
analogous
#4F2D8F #802D8F #8F2D6D
triadic
#802D8F #8F802D #2D8F80
tetradic
#802D8F #8F4F2D #3C8F2D #2D6D8F
square
#802D8F #8F4F2D #3C8F2D #2D6D8F
split-complementary
#802D8F #6D8F2D #2D8F4F
monochromatic
#2D1032 #561E60 #802D8F #AA3CBE #BF67CF

Accessibility & contrast

On white

7.81
#802D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#802D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D8F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D8F#FFFFFF#000000##FFFFFF
##802D8F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C92
Deuteranopia (green-blind)
#38558D
Tritanopia (blue-blind)
#813E5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802d8f;
/* rgb */ color: rgb(128, 45, 143);
/* oklch */ color: oklch(46.0% 0.168 321.2);
Tailwind
colors: {
  custom: {
    50: '#a86db0',
    500: '#802d8f',
    950: '#000000',
  },
}
SCSS
$custom: #802d8f;
$custom-light: #a86db0;
$custom-dark: #000000;
JSON
{
  "hex": "#802d8f",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 290.816,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4603,
    "c": 0.16755,
    "h": 321.2
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#802D8F
secondary
#6FB662
accent
#DC4C62
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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