#802BAB#802BAB

#802BAB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.196 H 311.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#802BAB
RGBrgb(128, 43, 171)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(25.1%, 74.9%, 0%, 32.9%)
CIE-LABlab(36.48, 56.16, -52.05)
CIE-LCHlch(36.48, 76.57, 317.17°)
OKLaboklab(47.75% 0.13 -0.1473)
OKLCHoklch(47.75% 0.196 311.4)
XYZxyz(17.1153, 9.2577, 39.4055)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BAB #56AB2B
analogous
#402BAB #802BAB #AB2B96
triadic
#802BAB #AB802B #2BAB80
tetradic
#802BAB #AB402B #56AB2B #2B96AB
square
#802BAB #AB402B #56AB2B #2B96AB
split-complementary
#802BAB #96AB2B #2BAB40
monochromatic
#371249 #5B1F7A #802BAB #A143D0 #B974DC

Accessibility & contrast

On white

7.36
#802BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#802BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BAB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BAB#FFFFFF#000000##FFFFFF
##802BAB1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802bab;
/* rgb */ color: rgb(128, 43, 171);
/* oklch */ color: oklch(47.7% 0.196 311.4);
Tailwind
colors: {
  custom: {
    50: '#a96dc5',
    500: '#802bab',
    950: '#000000',
  },
}
SCSS
$custom: #802bab;
$custom-light: #a96dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#802bab",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 279.844,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47746,
    "c": 0.19644,
    "h": 311.4
  },
  "luminance": 0.09257
}

Semantic roles & 50–950 ramp

primary
#802BAB
secondary
#8BC46E
accent
#E3457A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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