#802EA2#802EA2

#802EA2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.184 H 314.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#802EA2
RGBrgb(128, 46, 162)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(21%, 71.6%, 0%, 36.5%)
CIE-LABlab(36.28, 53.03, -46.97)
CIE-LCHlch(36.28, 70.84, 318.46°)
OKLaboklab(47.41% 0.1282 -0.1324)
OKLCHoklch(47.41% 0.184 314.1)
XYZxyz(16.3996, 9.1524, 35.0781)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EA2 #50A22E
analogous
#462EA2 #802EA2 #A22E8A
triadic
#802EA2 #A2802E #2EA280
tetradic
#802EA2 #A2462E #50A22E #2E8AA2
square
#802EA2 #A2462E #50A22E #2E8AA2
split-complementary
#802EA2 #8AA22E #2EA246
monochromatic
#351343 #5A2072 #802EA2 #A243CA #BA73D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802EA2#FFFFFF#000000##FFFFFF
##802EA21.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)
#0051A5
Deuteranopia (green-blind)
#27579F
Tritanopia (blue-blind)
#7D4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ea2;
/* rgb */ color: rgb(128, 46, 162);
/* oklch */ color: oklch(47.4% 0.184 314.1);
Tailwind
colors: {
  custom: {
    50: '#a96ebe',
    500: '#802ea2',
    950: '#000000',
  },
}
SCSS
$custom: #802ea2;
$custom-light: #a96ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#802ea2",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 282.414,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47405,
    "c": 0.18432,
    "h": 314.1
  },
  "luminance": 0.09152
}

Semantic roles & 50–950 ramp

primary
#802EA2
secondary
#85BF6D
accent
#DF4975
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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