#802AB1#802AB1

#802AB1 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.203 H 309.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#802AB1
RGBrgb(128, 42, 177)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 76%, 69%)
CMYKcmyk(27.7%, 76.3%, 0%, 30.6%)
CIE-LABlab(36.78, 57.83, -55.13)
CIE-LCHlch(36.78, 79.90, 316.37°)
OKLaboklab(48.1% 0.1298 -0.1564)
OKLCHoklch(48.1% 0.203 309.7)
XYZxyz(17.6643, 9.4198, 42.4741)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB1 #5BB12A
analogous
#3C2AB1 #802AB1 #B12A9E
triadic
#802AB1 #B1802A #2AB180
tetradic
#802AB1 #B13C2A #5BB12A #2A9EB1
square
#802AB1 #B13C2A #5BB12A #2A9EB1
split-complementary
#802AB1 #9EB12A #2AB13C
monochromatic
#38134E #5C1E80 #802AB1 #A045D3 #B977DF

Accessibility & contrast

On white

7.28
#802AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#802AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB1#FFFFFF#000000##FFFFFF
##802AB11.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0058AE
Tritanopia (blue-blind)
#794B6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802ab1;
/* rgb */ color: rgb(128, 42, 177);
/* oklch */ color: oklch(48.1% 0.203 309.7);
Tailwind
colors: {
  custom: {
    50: '#aa6dc9',
    500: '#802ab1',
    950: '#000000',
  },
}
SCSS
$custom: #802ab1;
$custom-light: #aa6dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab1",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 278.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48099,
    "c": 0.20322,
    "h": 309.7
  },
  "luminance": 0.09419
}

Semantic roles & 50–950 ramp

primary
#802AB1
secondary
#90C670
accent
#E5437E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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