#802DA5#802DA5

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

Color values

HEX#802DA5
RGBrgb(128, 45, 165)
HSLhsl(282, 57%, 41%)
HSVhsv(282, 73%, 65%)
CMYKcmyk(22.4%, 72.7%, 0%, 35.3%)
CIE-LABlab(36.33, 54.08, -48.68)
CIE-LCHlch(36.33, 72.77, 318.00°)
OKLaboklab(47.51% 0.1289 -0.1374)
OKLCHoklch(47.51% 0.188 313.2)
XYZxyz(16.6308, 9.1831, 36.4865)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DA5 #52A52D
analogous
#442DA5 #802DA5 #A52D8E
triadic
#802DA5 #A5802D #2DA580
tetradic
#802DA5 #A5442D #52A52D #2D8EA5
square
#802DA5 #A5442D #52A52D #2D8EA5
split-complementary
#802DA5 #8EA52D #2DA544
monochromatic
#351345 #5B2075 #802DA5 #A243CC #BA73D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802DA5#FFFFFF#000000##FFFFFF
##802DA51.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)
#0051A8
Deuteranopia (green-blind)
#2257A2
Tritanopia (blue-blind)
#7C4766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802da5;
/* rgb */ color: rgb(128, 45, 165);
/* oklch */ color: oklch(47.5% 0.188 313.2);
Tailwind
colors: {
  custom: {
    50: '#a96ec0',
    500: '#802da5',
    950: '#000000',
  },
}
SCSS
$custom: #802da5;
$custom-light: #a96ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#802da5",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 281.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47511,
    "c": 0.18841,
    "h": 313.2
  },
  "luminance": 0.09183
}

Semantic roles & 50–950 ramp

primary
#802DA5
secondary
#87C16D
accent
#E04777
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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