#802BA2#802BA2

#802BA2 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.188 H 314.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#802BA2
RGBrgb(128, 43, 162)
HSLhsl(283, 58%, 40%)
HSVhsv(283, 73%, 64%)
CMYKcmyk(21%, 73.5%, 0%, 36.5%)
CIE-LABlab(35.84, 54.26, -47.67)
CIE-LCHlch(35.84, 72.23, 318.70°)
OKLaboklab(47.1% 0.1313 -0.1345)
OKLCHoklch(47.1% 0.188 314.3)
XYZxyz(16.2865, 8.9261, 35.0404)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA2 #4DA22B
analogous
#442BA2 #802BA2 #A22B89
triadic
#802BA2 #A2802B #2BA280
tetradic
#802BA2 #A2442B #4DA22B #2B89A2
square
#802BA2 #A2442B #4DA22B #2B89A2
split-complementary
#802BA2 #89A22B #2BA244
monochromatic
#341141 #5A1E72 #802BA2 #A33ECC #BA6FD9

Accessibility & contrast

On white

7.54
#802BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#802BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BA2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BA2#FFFFFF#000000##FFFFFF
##802BA21.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#24569F
Tritanopia (blue-blind)
#7D4564
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802ba2;
/* rgb */ color: rgb(128, 43, 162);
/* oklch */ color: oklch(47.1% 0.188 314.3);
Tailwind
colors: {
  custom: {
    50: '#a96dbe',
    500: '#802ba2',
    950: '#000000',
  },
}
SCSS
$custom: #802ba2;
$custom-light: #a96dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba2",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 282.857,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47095,
    "c": 0.18792,
    "h": 314.3
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

primary
#802BA2
secondary
#82C069
accent
#E14773
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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