#802D99#802D99

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

Color values

HEX#802D99
RGBrgb(128, 45, 153)
HSLhsl(286, 55%, 39%)
HSVhsv(286, 71%, 60%)
CMYKcmyk(16.3%, 70.6%, 0%, 40%)
CIE-LABlab(35.53, 51.58, -42.73)
CIE-LCHlch(35.53, 66.98, 320.36°)
OKLaboklab(46.68% 0.1301 -0.12)
OKLCHoklch(46.68% 0.177 317.3)
XYZxyz(15.5894, 8.7665, 31.0017)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D99 #46992D
analogous
#4A2D99 #802D99 #992D7C
triadic
#802D99 #99802D #2D9980
tetradic
#802D99 #994A2D #46992D #2D7C99
square
#802D99 #994A2D #46992D #2D7C99
split-complementary
#802D99 #7C992D #2D994A
monochromatic
#31113A #581F6A #802D99 #A63DC6 #BC6CD4

Accessibility & contrast

On white

7.63
#802D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#802D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D99
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D99#FFFFFF#000000##FFFFFF
##802D991.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#305696
Tritanopia (blue-blind)
#7F4260
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802d99;
/* rgb */ color: rgb(128, 45, 153);
/* oklch */ color: oklch(46.7% 0.177 317.3);
Tailwind
colors: {
  custom: {
    50: '#a86db8',
    500: '#802d99',
    950: '#000000',
  },
}
SCSS
$custom: #802d99;
$custom-light: #a86db8;
$custom-dark: #000000;
JSON
{
  "hex": "#802d99",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 286.111,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46682,
    "c": 0.17696,
    "h": 317.3
  },
  "luminance": 0.08766
}

Semantic roles & 50–950 ramp

primary
#802D99
secondary
#7ABB67
accent
#DE4A6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802D99

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

Preview Lab → · Contrast checker → · Palette generator →

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