#802BA8#802BA8

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

Color values

HEX#802BA8
RGBrgb(128, 43, 168)
HSLhsl(281, 59%, 41%)
HSVhsv(281, 74%, 66%)
CMYKcmyk(23.8%, 74.4%, 0%, 34.1%)
CIE-LABlab(36.26, 55.52, -50.60)
CIE-LCHlch(36.26, 75.12, 317.65°)
OKLaboklab(47.53% 0.1304 -0.1431)
OKLCHoklch(47.53% 0.194 312.4)
XYZxyz(16.8326, 9.1446, 37.9166)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA8 #53A82B
analogous
#422BA8 #802BA8 #A82B92
triadic
#802BA8 #A8802B #2BA880
tetradic
#802BA8 #A8422B #53A82B #2B92A8
square
#802BA8 #A8422B #53A82B #2B92A8
split-complementary
#802BA8 #92A82B #2BA842
monochromatic
#361247 #5B1F77 #802BA8 #A142CF #BA72DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802BA8#FFFFFF#000000##FFFFFF
##802BA81.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)
#0051AC
Deuteranopia (green-blind)
#1B57A5
Tritanopia (blue-blind)
#7B4767
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ba8;
/* rgb */ color: rgb(128, 43, 168);
/* oklch */ color: oklch(47.5% 0.194 312.4);
Tailwind
colors: {
  custom: {
    50: '#a96dc3',
    500: '#802ba8',
    950: '#000000',
  },
}
SCSS
$custom: #802ba8;
$custom-light: #a96dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba8",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 280.8,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47526,
    "c": 0.1936,
    "h": 312.4
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#802BA8
secondary
#88C26C
accent
#E24578
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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