#802DC5#802DC5

#802DC5 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.219 H 304.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#802DC5
RGBrgb(128, 45, 197)
HSLhsl(273, 63%, 47%)
HSVhsv(273, 77%, 77%)
CMYKcmyk(35%, 77.2%, 0%, 22.7%)
CIE-LABlab(38.72, 61.12, -63.76)
CIE-LCHlch(38.72, 88.32, 313.79°)
OKLaboklab(49.94% 0.1228 -0.1817)
OKLCHoklch(49.94% 0.219 304)
XYZxyz(19.9162, 10.4972, 53.7894)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DC5 #72C52D
analogous
#342DC5 #802DC5 #C52DBE
triadic
#802DC5 #C5802D #2DC580
tetradic
#802DC5 #C5342D #72C52D #2DBEC5
square
#802DC5 #C5342D #72C52D #2DBEC5
split-complementary
#802DC5 #BEC52D #2DC534
monochromatic
#3F1661 #602293 #802DC5 #9E57D9 #BA88E4

Accessibility & contrast

On white

6.78
#802DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#802DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802DC5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DC5#FFFFFF#000000##FFFFFF
##802DC51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#725578
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #802dc5;
/* rgb */ color: rgb(128, 45, 197);
/* oklch */ color: oklch(49.9% 0.219 304.0);
Tailwind
colors: {
  custom: {
    50: '#ab6fd8',
    500: '#802dc5',
    950: '#000000',
  },
}
SCSS
$custom: #802dc5;
$custom-light: #ab6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#802dc5",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 272.763,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49944,
    "c": 0.21933,
    "h": 304
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#802DC5
secondary
#A3CE80
accent
#E6428C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #802DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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