#802EA5#802EA5

#802EA5 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.187 H 313.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#802EA5
RGBrgb(128, 46, 165)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.4%, 72.1%, 0%, 35.3%)
CIE-LABlab(36.48, 53.66, -48.45)
CIE-LCHlch(36.48, 72.30, 317.92°)
OKLaboklab(47.62% 0.1278 -0.1368)
OKLCHoklch(47.62% 0.187 313.1)
XYZxyz(16.6694, 9.2603, 36.4993)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EA5 #53A52E
analogous
#452EA5 #802EA5 #A52E8F
triadic
#802EA5 #A5802E #2EA580
tetradic
#802EA5 #A5452E #53A52E #2E8FA5
square
#802EA5 #A5452E #53A52E #2E8FA5
split-complementary
#802EA5 #8FA52E #2EA545
monochromatic
#361345 #5B2175 #802EA5 #A145CB #BA75D8

Accessibility & contrast

On white

7.36
#802EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#802EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EA5
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EA5#FFFFFF#000000##FFFFFF
##802EA51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2358A2
Tritanopia (blue-blind)
#7C4867
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802ea5;
/* rgb */ color: rgb(128, 46, 165);
/* oklch */ color: oklch(47.6% 0.187 313.1);
Tailwind
colors: {
  custom: {
    50: '#a96ec0',
    500: '#802ea5',
    950: '#000000',
  },
}
SCSS
$custom: #802ea5;
$custom-light: #a96ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#802ea5",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 281.345,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.18721,
    "h": 313.1
  },
  "luminance": 0.0926
}

Semantic roles & 50–950 ramp

primary
#802EA5
secondary
#88C06F
accent
#E04877
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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