#802AB5#802AB5

#802AB5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.207 H 308.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#802AB5
RGBrgb(128, 42, 181)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(29.3%, 76.8%, 0%, 29%)
CIE-LABlab(37.08, 58.70, -57.02)
CIE-LCHlch(37.08, 81.83, 315.83°)
OKLaboklab(48.41% 0.129 -0.1619)
OKLCHoklch(48.41% 0.207 308.5)
XYZxyz(18.0688, 9.5816, 44.6047)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB5 #5FB52A
analogous
#3A2AB5 #802AB5 #B52AA4
triadic
#802AB5 #B5802A #2AB580
tetradic
#802AB5 #B53A2A #5FB52A #2AA4B5
square
#802AB5 #B53A2A #5FB52A #2AA4B5
split-complementary
#802AB5 #A4B52A #2AB53A
monochromatic
#3A1352 #5D1E83 #802AB5 #9F48D4 #B979E0

Accessibility & contrast

On white

7.20
#802AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802AB5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB5#FFFFFF#000000##FFFFFF
##802AB51.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#784C6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802ab5;
/* rgb */ color: rgb(128, 42, 181);
/* oklch */ color: oklch(48.4% 0.207 308.5);
Tailwind
colors: {
  custom: {
    50: '#aa6dcc',
    500: '#802ab5',
    950: '#000000',
  },
}
SCSS
$custom: #802ab5;
$custom-light: #aa6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab5",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 277.122,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48405,
    "c": 0.207,
    "h": 308.5
  },
  "luminance": 0.09581
}

Semantic roles & 50–950 ramp

primary
#802AB5
secondary
#93C873
accent
#E54281
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #802AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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