#802CA1#802CA1

#802CA1 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.186 H 314.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#802CA1
RGBrgb(128, 44, 161)
HSLhsl(283, 57%, 40%)
HSVhsv(283, 73%, 63%)
CMYKcmyk(20.5%, 72.7%, 0%, 36.9%)
CIE-LABlab(35.92, 53.65, -46.95)
CIE-LCHlch(35.92, 71.29, 318.81°)
OKLaboklab(47.13% 0.1304 -0.1324)
OKLCHoklch(47.13% 0.186 314.6)
XYZxyz(16.2347, 8.9643, 34.5864)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CA1 #4DA12C
analogous
#462CA1 #802CA1 #A12C87
triadic
#802CA1 #A1802C #2CA180
tetradic
#802CA1 #A1462C #4DA12C #2C87A1
square
#802CA1 #A1462C #4DA12C #2C87A1
split-complementary
#802CA1 #87A12C #2CA146
monochromatic
#341241 #5A1F71 #802CA1 #A340CB #BA70D8

Accessibility & contrast

On white

7.52
#802CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#802CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CA1
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CA1#FFFFFF#000000##FFFFFF
##802CA11.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#26579E
Tritanopia (blue-blind)
#7D4564
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802ca1;
/* rgb */ color: rgb(128, 44, 161);
/* oklch */ color: oklch(47.1% 0.186 314.6);
Tailwind
colors: {
  custom: {
    50: '#a96dbd',
    500: '#802ca1',
    950: '#000000',
  },
}
SCSS
$custom: #802ca1;
$custom-light: #a96dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#802ca1",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 283.077,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47126,
    "c": 0.18579,
    "h": 314.6
  },
  "luminance": 0.08964
}

Semantic roles & 50–950 ramp

primary
#802CA1
secondary
#82BF6A
accent
#E04773
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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