#802EC8#802EC8

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

Color values

HEX#802EC8
RGBrgb(128, 46, 200)
HSLhsl(272, 63%, 48%)
HSVhsv(272, 77%, 78%)
CMYKcmyk(36%, 77%, 0%, 21.6%)
CIE-LABlab(39.09, 61.41, -64.90)
CIE-LCHlch(39.09, 89.35, 313.42°)
OKLaboklab(50.28% 0.1212 -0.1851)
OKLCHoklch(50.28% 0.221 303.2)
XYZxyz(20.3020, 10.7133, 55.6307)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EC8 #76C82E
analogous
#332EC8 #802EC8 #C82EC3
triadic
#802EC8 #C8802E #2EC880
tetradic
#802EC8 #C8332E #76C82E #2EC3C8
square
#802EC8 #C8332E #76C82E #2EC3C8
split-complementary
#802EC8 #C3C82E #2EC833
monochromatic
#401764 #602396 #802EC8 #9E5AD9 #BB8CE5

Accessibility & contrast

On white

6.68
#802EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #802EC8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EC8#FFFFFF#000000##FFFFFF
##802EC81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802ec8;
/* rgb */ color: rgb(128, 46, 200);
/* oklch */ color: oklch(50.3% 0.221 303.2);
Tailwind
colors: {
  custom: {
    50: '#ab70da',
    500: '#802ec8',
    950: '#000000',
  },
}
SCSS
$custom: #802ec8;
$custom-light: #ab70da;
$custom-dark: #000000;
JSON
{
  "hex": "#802ec8",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 271.948,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5028,
    "c": 0.22126,
    "h": 303.2
  },
  "luminance": 0.10713
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #802EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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