#802DC8#802DC8

#802DC8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.222 H 303.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#802DC8
RGBrgb(128, 45, 200)
HSLhsl(272, 63%, 48%)
HSVhsv(272, 78%, 78%)
CMYKcmyk(36%, 77.5%, 0%, 21.6%)
CIE-LABlab(38.96, 61.80, -65.12)
CIE-LCHlch(38.96, 89.77, 313.50°)
OKLaboklab(50.19% 0.122 -0.1857)
OKLCHoklch(50.19% 0.222 303.3)
XYZxyz(20.2633, 10.6361, 55.6178)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DC8 #75C82D
analogous
#332DC8 #802DC8 #C82DC2
triadic
#802DC8 #C8802D #2DC880
tetradic
#802DC8 #C8332D #75C82D #2DC2C8
square
#802DC8 #C8332D #75C82D #2DC2C8
split-complementary
#802DC8 #C2C82D #2DC833
monochromatic
#401764 #602296 #802DC8 #9E59DA #BB8BE5

Accessibility & contrast

On white

6.72
#802DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#802DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802DC8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DC8#FFFFFF#000000##FFFFFF
##802DC81.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#71567A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #802dc8;
/* rgb */ color: rgb(128, 45, 200);
/* oklch */ color: oklch(50.2% 0.222 303.3);
Tailwind
colors: {
  custom: {
    50: '#ab6fda',
    500: '#802dc8',
    950: '#000000',
  },
}
SCSS
$custom: #802dc8;
$custom-light: #ab6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#802dc8",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 272.129,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50187,
    "c": 0.22223,
    "h": 303.3
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

primary
#802DC8
secondary
#A6CF82
accent
#E6418E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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