#802AC6#802AC6

#802AC6 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.8% C 0.223 H 304.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#802AC6
RGBrgb(128, 42, 198)
HSLhsl(273, 65%, 47%)
HSVhsv(273, 79%, 78%)
CMYKcmyk(35.4%, 78.8%, 0%, 22.4%)
CIE-LABlab(38.41, 62.45, -64.84)
CIE-LCHlch(38.41, 90.03, 313.93°)
OKLaboklab(49.76% 0.1249 -0.1849)
OKLCHoklch(49.76% 0.223 304)
XYZxyz(19.9207, 10.3224, 54.3581)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AC6 #70C62A
analogous
#322AC6 #802AC6 #C62ABE
triadic
#802AC6 #C6802A #2AC680
tetradic
#802AC6 #C6322A #70C62A #2ABEC6
square
#802AC6 #C6322A #70C62A #2ABEC6
split-complementary
#802AC6 #BEC62A #2AC632
monochromatic
#3F1561 #5F1F94 #802AC6 #9E53DA #BA85E5

Accessibility & contrast

On white

6.85
#802AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#802AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802AC6
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AC6#FFFFFF#000000##FFFFFF
##802AC61.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#725478
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #802ac6;
/* rgb */ color: rgb(128, 42, 198);
/* oklch */ color: oklch(49.8% 0.223 304.0);
Tailwind
colors: {
  custom: {
    50: '#ab6ed8',
    500: '#802ac6',
    950: '#000000',
  },
}
SCSS
$custom: #802ac6;
$custom-light: #ab6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#802ac6",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 198
  },
  "hsl": {
    "h": 273.077,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49755,
    "c": 0.22315,
    "h": 304
  },
  "luminance": 0.10322
}

Semantic roles & 50–950 ramp

primary
#802AC6
secondary
#A2CE7D
accent
#E8408B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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