#802A99#802A99

#802A99 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.181 H 317.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#802A99
RGBrgb(128, 42, 153)
HSLhsl(286, 57%, 38%)
HSVhsv(286, 73%, 60%)
CMYKcmyk(16.3%, 72.5%, 0%, 40%)
CIE-LABlab(35.09, 52.81, -43.43)
CIE-LCHlch(35.09, 68.38, 320.57°)
OKLaboklab(46.37% 0.1333 -0.122)
OKLCHoklch(46.37% 0.181 317.5)
XYZxyz(15.4790, 8.5457, 30.9649)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A99 #43992A
analogous
#482A99 #802A99 #992A7A
triadic
#802A99 #99802A #2A9980
tetradic
#802A99 #99482A #43992A #2A7A99
square
#802A99 #99482A #43992A #2A7A99
split-complementary
#802A99 #7A992A #2A9948
monochromatic
#301039 #581D69 #802A99 #A838C8 #BD68D6

Accessibility & contrast

On white

7.75
#802A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#802A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A99
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A99#FFFFFF#000000##FFFFFF
##802A991.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#7F405F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802a99;
/* rgb */ color: rgb(128, 42, 153);
/* oklch */ color: oklch(46.4% 0.181 317.5);
Tailwind
colors: {
  custom: {
    50: '#a86cb8',
    500: '#802a99',
    950: '#000000',
  },
}
SCSS
$custom: #802a99;
$custom-light: #a86cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802a99",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 286.486,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46371,
    "c": 0.18068,
    "h": 317.5
  },
  "luminance": 0.08545
}

Semantic roles & 50–950 ramp

primary
#802A99
secondary
#77BC63
accent
#E0486A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802A99

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

Preview Lab → · Contrast checker → · Palette generator →

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