#802D9B#802D9B

#802D9B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.179 H 316.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#802D9B
RGBrgb(128, 45, 155)
HSLhsl(285, 55%, 39%)
HSVhsv(285, 71%, 61%)
CMYKcmyk(17.4%, 71%, 0%, 39.2%)
CIE-LABlab(35.66, 51.99, -43.73)
CIE-LCHlch(35.66, 67.94, 319.93°)
OKLaboklab(46.82% 0.1299 -0.1229)
OKLCHoklch(46.82% 0.179 316.6)
XYZxyz(15.7560, 8.8332, 31.8790)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D9B #489B2D
analogous
#492D9B #802D9B #9B2D7F
triadic
#802D9B #9B802D #2D9B80
tetradic
#802D9B #9B492D #489B2D #2D7F9B
square
#802D9B #9B492D #489B2D #2D7F9B
split-complementary
#802D9B #7F9B2D #2D9B49
monochromatic
#32113C #591F6C #802D9B #A53EC7 #BB6ED5

Accessibility & contrast

On white

7.59
#802D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802D9B
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D9B#FFFFFF#000000##FFFFFF
##802D9B1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802d9b;
/* rgb */ color: rgb(128, 45, 155);
/* oklch */ color: oklch(46.8% 0.179 316.6);
Tailwind
colors: {
  custom: {
    50: '#a86db9',
    500: '#802d9b',
    950: '#000000',
  },
}
SCSS
$custom: #802d9b;
$custom-light: #a86db9;
$custom-dark: #000000;
JSON
{
  "hex": "#802d9b",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 285.273,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46817,
    "c": 0.17885,
    "h": 316.6
  },
  "luminance": 0.08833
}

Semantic roles & 50–950 ramp

primary
#802D9B
secondary
#7DBC68
accent
#DE496E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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