#802AB4#802AB4

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

Color values

HEX#802AB4
RGBrgb(128, 42, 180)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(28.9%, 76.7%, 0%, 29.4%)
CIE-LABlab(37.01, 58.48, -56.55)
CIE-LCHlch(37.01, 81.35, 315.96°)
OKLaboklab(48.33% 0.1292 -0.1605)
OKLCHoklch(48.33% 0.206 308.8)
XYZxyz(17.9666, 9.5407, 44.0662)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB4 #5EB42A
analogous
#3B2AB4 #802AB4 #B42AA3
triadic
#802AB4 #B4802A #2AB480
tetradic
#802AB4 #B43B2A #5EB42A #2AA3B4
square
#802AB4 #B43B2A #5EB42A #2AA3B4
split-complementary
#802AB4 #A3B42A #2AB43B
monochromatic
#391351 #5D1E82 #802AB4 #9F47D4 #B979E0

Accessibility & contrast

On white

7.22
#802AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#802AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB4#FFFFFF#000000##FFFFFF
##802AB41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#784C6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802ab4;
/* rgb */ color: rgb(128, 42, 180);
/* oklch */ color: oklch(48.3% 0.206 308.8);
Tailwind
colors: {
  custom: {
    50: '#aa6dcb',
    500: '#802ab4',
    950: '#000000',
  },
}
SCSS
$custom: #802ab4;
$custom-light: #aa6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab4",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 277.391,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48328,
    "c": 0.20606,
    "h": 308.8
  },
  "luminance": 0.0954
}

Semantic roles & 50–950 ramp

primary
#802AB4
secondary
#92C872
accent
#E54380
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #802AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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