#802AB3#802AB3

#802AB3 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.205 H 309.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#802AB3
RGBrgb(128, 42, 179)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 77%, 70%)
CMYKcmyk(28.5%, 76.5%, 0%, 29.8%)
CIE-LABlab(36.93, 58.27, -56.08)
CIE-LCHlch(36.93, 80.87, 316.10°)
OKLaboklab(48.25% 0.1294 -0.1592)
OKLCHoklch(48.25% 0.205 309.1)
XYZxyz(17.8651, 9.5001, 43.5317)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB3 #5DB32A
analogous
#3B2AB3 #802AB3 #B32AA1
triadic
#802AB3 #B3802A #2AB380
tetradic
#802AB3 #B33B2A #5DB32A #2AA1B3
square
#802AB3 #B33B2A #5DB32A #2AA1B3
split-complementary
#802AB3 #A1B32A #2AB33B
monochromatic
#391350 #5D1E81 #802AB3 #9F46D4 #B978DF

Accessibility & contrast

On white

7.24
#802AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#802AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB3
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB3#FFFFFF#000000##FFFFFF
##802AB31.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#784B6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802ab3;
/* rgb */ color: rgb(128, 42, 179);
/* oklch */ color: oklch(48.3% 0.205 309.1);
Tailwind
colors: {
  custom: {
    50: '#aa6dcb',
    500: '#802ab3',
    950: '#000000',
  },
}
SCSS
$custom: #802ab3;
$custom-light: #aa6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab3",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 277.664,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48252,
    "c": 0.20512,
    "h": 309.1
  },
  "luminance": 0.095
}

Semantic roles & 50–950 ramp

primary
#802AB3
secondary
#91C772
accent
#E5437F
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #802AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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