#802AA2#802AA2

#802AA2 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.189 H 314.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#802AA2
RGBrgb(128, 42, 162)
HSLhsl(283, 59%, 40%)
HSVhsv(283, 74%, 64%)
CMYKcmyk(21%, 74.1%, 0%, 36.5%)
CIE-LABlab(35.70, 54.66, -47.90)
CIE-LCHlch(35.70, 72.67, 318.77°)
OKLaboklab(47% 0.1323 -0.1351)
OKLCHoklch(47% 0.189 314.4)
XYZxyz(16.2505, 8.8543, 35.0284)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AA2 #4CA22A
analogous
#442AA2 #802AA2 #A22A88
triadic
#802AA2 #A2802A #2AA280
tetradic
#802AA2 #A2442A #4CA22A #2A88A2
square
#802AA2 #A2442A #4CA22A #2A88A2
split-complementary
#802AA2 #88A22A #2AA244
monochromatic
#331141 #5A1D71 #802AA2 #A43DCD #BB6DD9

Accessibility & contrast

On white

7.58
#802AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#802AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AA2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AA2#FFFFFF#000000##FFFFFF
##802AA21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#23569F
Tritanopia (blue-blind)
#7D4464
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802aa2;
/* rgb */ color: rgb(128, 42, 162);
/* oklch */ color: oklch(47.0% 0.189 314.4);
Tailwind
colors: {
  custom: {
    50: '#a96cbe',
    500: '#802aa2',
    950: '#000000',
  },
}
SCSS
$custom: #802aa2;
$custom-light: #a96cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#802aa2",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 283,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46996,
    "c": 0.18908,
    "h": 314.4
  },
  "luminance": 0.08854
}

Semantic roles & 50–950 ramp

primary
#802AA2
secondary
#81C068
accent
#E24672
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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