#802AB7#802AB7

#802AB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.209 H 308.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#802AB7
RGBrgb(128, 42, 183)
HSLhsl(277, 63%, 44%)
HSVhsv(277, 77%, 72%)
CMYKcmyk(30.1%, 77%, 0%, 28.2%)
CIE-LABlab(37.23, 59.14, -57.96)
CIE-LCHlch(37.23, 82.80, 315.58°)
OKLaboklab(48.56% 0.1286 -0.1647)
OKLCHoklch(48.56% 0.209 308)
XYZxyz(18.2755, 9.6643, 45.6932)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB7 #61B72A
analogous
#3A2AB7 #802AB7 #B72AA8
triadic
#802AB7 #B7802A #2AB780
tetradic
#802AB7 #B73A2A #61B72A #2AA8B7
square
#802AB7 #B73A2A #61B72A #2AA8B7
split-complementary
#802AB7 #A8B72A #2AB73A
monochromatic
#3A1353 #5D1F85 #802AB7 #9F49D5 #B97BE1

Accessibility & contrast

On white

7.16
#802AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#802AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB7#FFFFFF#000000##FFFFFF
##802AB71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#774D70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802ab7;
/* rgb */ color: rgb(128, 42, 183);
/* oklch */ color: oklch(48.6% 0.209 308.0);
Tailwind
colors: {
  custom: {
    50: '#aa6dcd',
    500: '#802ab7',
    950: '#000000',
  },
}
SCSS
$custom: #802ab7;
$custom-light: #aa6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab7",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 276.596,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4856,
    "c": 0.20891,
    "h": 308
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#802AB7
secondary
#95C974
accent
#E64282
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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