#802CA8#802CA8

#802CA8 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.192 H 312.3°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#802CA8
RGBrgb(128, 44, 168)
HSLhsl(281, 58%, 42%)
HSVhsv(281, 74%, 66%)
CMYKcmyk(23.8%, 73.8%, 0%, 34.1%)
CIE-LABlab(36.40, 55.12, -50.38)
CIE-LCHlch(36.40, 74.68, 317.58°)
OKLaboklab(47.63% 0.1295 -0.1424)
OKLCHoklch(47.63% 0.192 312.3)
XYZxyz(16.8694, 9.2182, 37.9288)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CA8 #54A82C
analogous
#422CA8 #802CA8 #A82C92
triadic
#802CA8 #A8802C #2CA880
tetradic
#802CA8 #A8422C #54A82C #2C92A8
square
#802CA8 #A8422C #54A82C #2C92A8
split-complementary
#802CA8 #92A82C #2CA842
monochromatic
#361347 #5B1F78 #802CA8 #A143CE #B974DB

Accessibility & contrast

On white

7.39
#802CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#802CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CA8
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CA8#FFFFFF#000000##FFFFFF
##802CA81.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1C57A5
Tritanopia (blue-blind)
#7B4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802ca8;
/* rgb */ color: rgb(128, 44, 168);
/* oklch */ color: oklch(47.6% 0.192 312.3);
Tailwind
colors: {
  custom: {
    50: '#a96dc3',
    500: '#802ca8',
    950: '#000000',
  },
}
SCSS
$custom: #802ca8;
$custom-light: #a96dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#802ca8",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 280.645,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.19246,
    "h": 312.3
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#802CA8
secondary
#89C26E
accent
#E24678
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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