#802BA5#802BA5

#802BA5 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.191 H 313.3°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#802BA5
RGBrgb(128, 43, 165)
HSLhsl(282, 59%, 41%)
HSVhsv(282, 74%, 65%)
CMYKcmyk(22.4%, 73.9%, 0%, 35.3%)
CIE-LABlab(36.05, 54.89, -49.14)
CIE-LCHlch(36.05, 73.67, 318.16°)
OKLaboklab(47.31% 0.1309 -0.1388)
OKLCHoklch(47.31% 0.191 313.3)
XYZxyz(16.5563, 9.0341, 36.4616)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA5 #50A52B
analogous
#432BA5 #802BA5 #A52B8D
triadic
#802BA5 #A5802B #2BA580
tetradic
#802BA5 #A5432B #50A52B #2B8DA5
square
#802BA5 #A5432B #50A52B #2B8DA5
split-complementary
#802BA5 #8DA52B #2BA543
monochromatic
#351244 #5A1E74 #802BA5 #A240CD #BA71DA

Accessibility & contrast

On white

7.48
#802BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#802BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BA5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BA5#FFFFFF#000000##FFFFFF
##802BA51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#7C4666
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ba5;
/* rgb */ color: rgb(128, 43, 165);
/* oklch */ color: oklch(47.3% 0.191 313.3);
Tailwind
colors: {
  custom: {
    50: '#a96dc0',
    500: '#802ba5',
    950: '#000000',
  },
}
SCSS
$custom: #802ba5;
$custom-light: #a96dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba5",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 281.803,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47309,
    "c": 0.19075,
    "h": 313.3
  },
  "luminance": 0.09034
}

Semantic roles & 50–950 ramp

primary
#802BA5
secondary
#85C16B
accent
#E24675
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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