#802EC5#802EC5

#802EC5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.218 H 304.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#802EC5
RGBrgb(128, 46, 197)
HSLhsl(273, 62%, 48%)
HSVhsv(273, 77%, 77%)
CMYKcmyk(35%, 76.6%, 0%, 22.7%)
CIE-LABlab(38.85, 60.73, -63.54)
CIE-LCHlch(38.85, 87.89, 313.70°)
OKLaboklab(50.04% 0.122 -0.1811)
OKLCHoklch(50.04% 0.218 304)
XYZxyz(19.9548, 10.5744, 53.8023)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EC5 #73C52E
analogous
#352EC5 #802EC5 #C52EBE
triadic
#802EC5 #C5802E #2EC580
tetradic
#802EC5 #C5352E #73C52E #2EBEC5
square
#802EC5 #C5352E #73C52E #2EBEC5
split-complementary
#802EC5 #BEC52E #2EC535
monochromatic
#401762 #602293 #802EC5 #9E58D8 #BB8AE4

Accessibility & contrast

On white

6.74
#802EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#802EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802EC5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EC5#FFFFFF#000000##FFFFFF
##802EC51.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#725579
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #802ec5;
/* rgb */ color: rgb(128, 46, 197);
/* oklch */ color: oklch(50.0% 0.218 304.0);
Tailwind
colors: {
  custom: {
    50: '#ab70d8',
    500: '#802ec5',
    950: '#000000',
  },
}
SCSS
$custom: #802ec5;
$custom-light: #ab70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#802ec5",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 272.583,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50038,
    "c": 0.21834,
    "h": 304
  },
  "luminance": 0.10574
}

Semantic roles & 50–950 ramp

primary
#802EC5
secondary
#A4CE81
accent
#E5438D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #802EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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