#802EA3#802EA3

#802EA3 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.185 H 313.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#802EA3
RGBrgb(128, 46, 163)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(21.5%, 71.8%, 0%, 36.1%)
CIE-LABlab(36.34, 53.24, -47.47)
CIE-LCHlch(36.34, 71.33, 318.28°)
OKLaboklab(47.47% 0.1281 -0.1339)
OKLCHoklch(47.47% 0.185 313.7)
XYZxyz(16.4888, 9.1881, 35.5481)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EA3 #51A32E
analogous
#452EA3 #802EA3 #A32E8B
triadic
#802EA3 #A3802E #2EA380
tetradic
#802EA3 #A3452E #51A32E #2E8BA3
square
#802EA3 #A3452E #51A32E #2E8BA3
split-complementary
#802EA3 #8BA32E #2EA345
monochromatic
#351344 #5B2173 #802EA3 #A244CA #BA74D8

Accessibility & contrast

On white

7.40
#802EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802EA3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EA3#FFFFFF#000000##FFFFFF
##802EA31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2657A0
Tritanopia (blue-blind)
#7D4765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ea3;
/* rgb */ color: rgb(128, 46, 163);
/* oklch */ color: oklch(47.5% 0.185 313.7);
Tailwind
colors: {
  custom: {
    50: '#a96ebf',
    500: '#802ea3',
    950: '#000000',
  },
}
SCSS
$custom: #802ea3;
$custom-light: #a96ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#802ea3",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 282.051,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47474,
    "c": 0.18528,
    "h": 313.7
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#802EA3
secondary
#86BF6D
accent
#DF4976
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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