#802AB6#802AB6

#802AB6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.208 H 308.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#802AB6
RGBrgb(128, 42, 182)
HSLhsl(277, 63%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(29.7%, 76.9%, 0%, 28.6%)
CIE-LABlab(37.16, 58.92, -57.49)
CIE-LCHlch(37.16, 82.32, 315.70°)
OKLaboklab(48.48% 0.1288 -0.1633)
OKLCHoklch(48.48% 0.208 308.3)
XYZxyz(18.1718, 9.6228, 45.1470)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB6 #60B62A
analogous
#3A2AB6 #802AB6 #B62AA6
triadic
#802AB6 #B6802A #2AB680
tetradic
#802AB6 #B63A2A #60B62A #2AA6B6
square
#802AB6 #B63A2A #60B62A #2AA6B6
split-complementary
#802AB6 #A6B62A #2AB63A
monochromatic
#3A1353 #5D1F84 #802AB6 #9F48D5 #B97AE0

Accessibility & contrast

On white

7.18
#802AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#802AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB6#FFFFFF#000000##FFFFFF
##802AB61.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#774D6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802ab6;
/* rgb */ color: rgb(128, 42, 182);
/* oklch */ color: oklch(48.5% 0.208 308.3);
Tailwind
colors: {
  custom: {
    50: '#aa6dcd',
    500: '#802ab6',
    950: '#000000',
  },
}
SCSS
$custom: #802ab6;
$custom-light: #aa6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab6",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 276.857,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48482,
    "c": 0.20796,
    "h": 308.3
  },
  "luminance": 0.09623
}

Semantic roles & 50–950 ramp

primary
#802AB6
secondary
#94C873
accent
#E64281
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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