#802AB9#802AB9

#802AB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.211 H 307.4°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#802AB9
RGBrgb(128, 42, 185)
HSLhsl(276, 63%, 45%)
HSVhsv(276, 77%, 73%)
CMYKcmyk(30.8%, 77.3%, 0%, 27.5%)
CIE-LABlab(37.39, 59.57, -58.89)
CIE-LCHlch(37.39, 83.77, 315.33°)
OKLaboklab(48.72% 0.1281 -0.1674)
OKLCHoklch(48.72% 0.211 307.4)
XYZxyz(18.4851, 9.7482, 46.7973)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB9 #63B92A
analogous
#392AB9 #802AB9 #B92AAB
triadic
#802AB9 #B9802A #2AB980
tetradic
#802AB9 #B9392A #63B92A #2AABB9
square
#802AB9 #B9392A #63B92A #2AABB9
split-complementary
#802AB9 #ABB92A #2AB939
monochromatic
#3B1355 #5D1F87 #802AB9 #9E4AD6 #B97CE1

Accessibility & contrast

On white

7.12
#802AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#802AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB9#FFFFFF#000000##FFFFFF
##802AB91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#764E71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802ab9;
/* rgb */ color: rgb(128, 42, 185);
/* oklch */ color: oklch(48.7% 0.211 307.4);
Tailwind
colors: {
  custom: {
    50: '#aa6dcf',
    500: '#802ab9',
    950: '#000000',
  },
}
SCSS
$custom: #802ab9;
$custom-light: #aa6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab9",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 276.084,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48716,
    "c": 0.2108,
    "h": 307.4
  },
  "luminance": 0.09748
}

Semantic roles & 50–950 ramp

primary
#802AB9
secondary
#97CA75
accent
#E64283
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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