#802BA6#802BA6

#802BA6 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.192 H 313.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#802BA6
RGBrgb(128, 43, 166)
HSLhsl(281, 59%, 41%)
HSVhsv(281, 74%, 65%)
CMYKcmyk(22.9%, 74.1%, 0%, 34.9%)
CIE-LABlab(36.12, 55.10, -49.63)
CIE-LCHlch(36.12, 74.16, 317.99°)
OKLaboklab(47.38% 0.1307 -0.1402)
OKLCHoklch(47.38% 0.192 313)
XYZxyz(16.6477, 9.0706, 36.9428)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA6 #51A62B
analogous
#422BA6 #802BA6 #A62B8E
triadic
#802BA6 #A6802B #2BA680
tetradic
#802BA6 #A6422B #51A62B #2B8EA6
square
#802BA6 #A6422B #51A62B #2B8EA6
split-complementary
#802BA6 #8EA62B #2BA642
monochromatic
#351245 #5B1E75 #802BA6 #A241CE #BA71DA

Accessibility & contrast

On white

7.46
#802BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802BA6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BA6#FFFFFF#000000##FFFFFF
##802BA61.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#7C4666
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ba6;
/* rgb */ color: rgb(128, 43, 166);
/* oklch */ color: oklch(47.4% 0.192 313.0);
Tailwind
colors: {
  custom: {
    50: '#a96dc1',
    500: '#802ba6',
    950: '#000000',
  },
}
SCSS
$custom: #802ba6;
$custom-light: #a96dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba6",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 281.463,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.1917,
    "h": 313
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#802BA6
secondary
#86C16B
accent
#E24676
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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