#802CA6#802CA6

#802CA6 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.191 H 312.9°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#802CA6
RGBrgb(128, 44, 166)
HSLhsl(281, 58%, 41%)
HSVhsv(281, 73%, 65%)
CMYKcmyk(22.9%, 73.5%, 0%, 34.9%)
CIE-LABlab(36.26, 54.70, -49.40)
CIE-LCHlch(36.26, 73.71, 317.91°)
OKLaboklab(47.48% 0.1297 -0.1395)
OKLCHoklch(47.48% 0.191 312.9)
XYZxyz(16.6845, 9.1442, 36.9551)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CA6 #52A62C
analogous
#432CA6 #802CA6 #A62C8F
triadic
#802CA6 #A6802C #2CA680
tetradic
#802CA6 #A6432C #52A62C #2C8FA6
square
#802CA6 #A6432C #52A62C #2C8FA6
split-complementary
#802CA6 #8FA62C #2CA643
monochromatic
#351245 #5B1F76 #802CA6 #A242CD #BA73DA

Accessibility & contrast

On white

7.42
#802CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#802CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CA6
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CA6#FFFFFF#000000##FFFFFF
##802CA61.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1F57A3
Tritanopia (blue-blind)
#7C4767
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ca6;
/* rgb */ color: rgb(128, 44, 166);
/* oklch */ color: oklch(47.5% 0.191 312.9);
Tailwind
colors: {
  custom: {
    50: '#a96dc1',
    500: '#802ca6',
    950: '#000000',
  },
}
SCSS
$custom: #802ca6;
$custom-light: #a96dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#802ca6",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 281.311,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47481,
    "c": 0.19054,
    "h": 312.9
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#802CA6
secondary
#87C16D
accent
#E14677
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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