#802CAB#802CAB

#802CAB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.195 H 311.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#802CAB
RGBrgb(128, 44, 171)
HSLhsl(280, 59%, 42%)
HSVhsv(280, 74%, 67%)
CMYKcmyk(25.1%, 74.3%, 0%, 32.9%)
CIE-LABlab(36.61, 55.76, -51.83)
CIE-LCHlch(36.61, 76.13, 317.10°)
OKLaboklab(47.84% 0.129 -0.1467)
OKLCHoklch(47.84% 0.195 311.3)
XYZxyz(17.1521, 9.3313, 39.4178)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CAB #57AB2C
analogous
#402CAB #802CAB #AB2C97
triadic
#802CAB #AB802C #2CAB80
tetradic
#802CAB #AB402C #57AB2C #2C97AB
square
#802CAB #AB402C #57AB2C #2C97AB
split-complementary
#802CAB #97AB2C #2CAB40
monochromatic
#37134A #5C1F7A #802CAB #A045CF #B976DC

Accessibility & contrast

On white

7.33
#802CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#802CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CAB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CAB#FFFFFF#000000##FFFFFF
##802CAB1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#1658A8
Tritanopia (blue-blind)
#7A4969
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802cab;
/* rgb */ color: rgb(128, 44, 171);
/* oklch */ color: oklch(47.8% 0.195 311.3);
Tailwind
colors: {
  custom: {
    50: '#a96ec5',
    500: '#802cab',
    950: '#000000',
  },
}
SCSS
$custom: #802cab;
$custom-light: #a96ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#802cab",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 279.685,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47844,
    "c": 0.19533,
    "h": 311.3
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #802CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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