#802AB8#802AB8

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

Color values

HEX#802AB8
RGBrgb(128, 42, 184)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 72%)
CMYKcmyk(30.4%, 77.2%, 0%, 27.8%)
CIE-LABlab(37.31, 59.35, -58.42)
CIE-LCHlch(37.31, 83.28, 315.45°)
OKLaboklab(48.64% 0.1283 -0.166)
OKLCHoklch(48.64% 0.21 307.7)
XYZxyz(18.3799, 9.7061, 46.2433)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB8 #62B82A
analogous
#392AB8 #802AB8 #B82AA9
triadic
#802AB8 #B8802A #2AB880
tetradic
#802AB8 #B8392A #62B82A #2AA9B8
square
#802AB8 #B8392A #62B82A #2AA9B8
split-complementary
#802AB8 #A9B82A #2AB839
monochromatic
#3B1354 #5D1F86 #802AB8 #9E4AD6 #B97BE1

Accessibility & contrast

On white

7.14
#802AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#802AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB8#FFFFFF#000000##FFFFFF
##802AB81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#774E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802ab8;
/* rgb */ color: rgb(128, 42, 184);
/* oklch */ color: oklch(48.6% 0.210 307.7);
Tailwind
colors: {
  custom: {
    50: '#aa6dce',
    500: '#802ab8',
    950: '#000000',
  },
}
SCSS
$custom: #802ab8;
$custom-light: #aa6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab8",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 276.338,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48638,
    "c": 0.20986,
    "h": 307.7
  },
  "luminance": 0.09706
}

Semantic roles & 50–950 ramp

primary
#802AB8
secondary
#96C975
accent
#E64283
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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