#802DAB#802DAB

#802DAB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.194 H 311.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#802DAB
RGBrgb(128, 45, 171)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 74%, 67%)
CMYKcmyk(25.1%, 73.7%, 0%, 32.9%)
CIE-LABlab(36.76, 55.36, -51.60)
CIE-LCHlch(36.76, 75.68, 317.02°)
OKLaboklab(47.94% 0.128 -0.146)
OKLCHoklch(47.94% 0.194 311.2)
XYZxyz(17.1898, 9.4067, 39.4303)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DAB #58AB2D
analogous
#412DAB #802DAB #AB2D97
triadic
#802DAB #AB802D #2DAB80
tetradic
#802DAB #AB412D #58AB2D #2D97AB
square
#802DAB #AB412D #58AB2D #2D97AB
split-complementary
#802DAB #97AB2D #2DAB41
monochromatic
#37144A #5C207B #802DAB #A047CE #B977DB

Accessibility & contrast

On white

7.29
#802DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802DAB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DAB#FFFFFF#000000##FFFFFF
##802DAB1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1858A8
Tritanopia (blue-blind)
#7A4A6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802dab;
/* rgb */ color: rgb(128, 45, 171);
/* oklch */ color: oklch(47.9% 0.194 311.2);
Tailwind
colors: {
  custom: {
    50: '#a96ec5',
    500: '#802dab',
    950: '#000000',
  },
}
SCSS
$custom: #802dab;
$custom-light: #a96ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#802dab",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 279.524,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47944,
    "c": 0.19418,
    "h": 311.2
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#802DAB
secondary
#8DC371
accent
#E2467B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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