#802DC9#802DC9

#802DC9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.223 H 303.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#802DC9
RGBrgb(128, 45, 201)
HSLhsl(272, 63%, 48%)
HSVhsv(272, 78%, 79%)
CMYKcmyk(36.3%, 77.6%, 0%, 21.2%)
CIE-LABlab(39.04, 62.02, -65.57)
CIE-LCHlch(39.04, 90.25, 313.41°)
OKLaboklab(50.27% 0.1218 -0.187)
OKLCHoklch(50.27% 0.223 303.1)
XYZxyz(20.3806, 10.6830, 56.2353)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DC9 #76C92D
analogous
#322DC9 #802DC9 #C92DC4
triadic
#802DC9 #C9802D #2DC980
tetradic
#802DC9 #C9322D #76C92D #2DC4C9
square
#802DC9 #C9322D #76C92D #2DC4C9
split-complementary
#802DC9 #C4C92D #2DC932
monochromatic
#401765 #602297 #802DC9 #9E59DA #BB8BE5

Accessibility & contrast

On white

6.70
#802DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#802DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802DC9
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DC9#FFFFFF#000000##FFFFFF
##802DC91.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#71567B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #802dc9;
/* rgb */ color: rgb(128, 45, 201);
/* oklch */ color: oklch(50.3% 0.223 303.1);
Tailwind
colors: {
  custom: {
    50: '#ab6fda',
    500: '#802dc9',
    950: '#000000',
  },
}
SCSS
$custom: #802dc9;
$custom-light: #ab6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#802dc9",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 271.923,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.2232,
    "h": 303.1
  },
  "luminance": 0.10683
}

Semantic roles & 50–950 ramp

primary
#802DC9
secondary
#A6CF83
accent
#E6418F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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