#802AB2#802AB2

#802AB2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.204 H 309.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#802AB2
RGBrgb(128, 42, 178)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 76%, 70%)
CMYKcmyk(28.1%, 76.4%, 0%, 30.2%)
CIE-LABlab(36.85, 58.05, -55.61)
CIE-LCHlch(36.85, 80.39, 316.23°)
OKLaboklab(48.18% 0.1296 -0.1578)
OKLCHoklch(48.18% 0.204 309.4)
XYZxyz(17.7643, 9.4598, 43.0010)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AB2 #5CB22A
analogous
#3C2AB2 #802AB2 #B22AA0
triadic
#802AB2 #B2802A #2AB280
tetradic
#802AB2 #B23C2A #5CB22A #2AA0B2
square
#802AB2 #B23C2A #5CB22A #2AA0B2
split-complementary
#802AB2 #A0B22A #2AB23C
monochromatic
#39134F #5C1E80 #802AB2 #9F46D3 #B977DF

Accessibility & contrast

On white

7.26
#802AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#802AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AB2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AB2#FFFFFF#000000##FFFFFF
##802AB21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#794B6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802ab2;
/* rgb */ color: rgb(128, 42, 178);
/* oklch */ color: oklch(48.2% 0.204 309.4);
Tailwind
colors: {
  custom: {
    50: '#aa6dca',
    500: '#802ab2',
    950: '#000000',
  },
}
SCSS
$custom: #802ab2;
$custom-light: #aa6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#802ab2",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 277.941,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48175,
    "c": 0.20417,
    "h": 309.4
  },
  "luminance": 0.09459
}

Semantic roles & 50–950 ramp

primary
#802AB2
secondary
#91C771
accent
#E5437E
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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