#802EC3#802EC3

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

Color values

HEX#802EC3
RGBrgb(128, 46, 195)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34.4%, 76.4%, 0%, 23.5%)
CIE-LABlab(38.70, 60.28, -62.63)
CIE-LCHlch(38.70, 86.92, 313.90°)
OKLaboklab(49.88% 0.1224 -0.1784)
OKLCHoklch(49.88% 0.216 304.5)
XYZxyz(19.7272, 10.4834, 52.6034)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EC3 #71C32E
analogous
#352EC3 #802EC3 #C32EBC
triadic
#802EC3 #C3802E #2EC380
tetradic
#802EC3 #C3352E #71C32E #2EBCC3
square
#802EC3 #C3352E #71C32E #2EBCC3
split-complementary
#802EC3 #BCC32E #2EC335
monochromatic
#3F1760 #5F2291 #802EC3 #9E57D7 #BA88E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802EC3#FFFFFF#000000##FFFFFF
##802EC31.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)
#0059C7
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#735477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #802ec3;
/* rgb */ color: rgb(128, 46, 195);
/* oklch */ color: oklch(49.9% 0.216 304.5);
Tailwind
colors: {
  custom: {
    50: '#ab70d6',
    500: '#802ec3',
    950: '#000000',
  },
}
SCSS
$custom: #802ec3;
$custom-light: #ab70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#802ec3",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 273.02,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49878,
    "c": 0.21639,
    "h": 304.5
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#802EC3
secondary
#A3CD80
accent
#E5438C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #802EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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