#802DC0#802DC0

#802DC0 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.214 H 305.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#802DC0
RGBrgb(128, 45, 192)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 77%, 75%)
CMYKcmyk(33.3%, 76.6%, 0%, 24.7%)
CIE-LABlab(38.33, 59.99, -61.48)
CIE-LCHlch(38.33, 85.89, 314.30°)
OKLaboklab(49.55% 0.124 -0.175)
OKLCHoklch(49.55% 0.214 305.3)
XYZxyz(19.3528, 10.2719, 50.8221)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DC0 #6DC02D
analogous
#372DC0 #802DC0 #C02DB7
triadic
#802DC0 #C0802D #2DC080
tetradic
#802DC0 #C0372D #6DC02D #2DB7C0
square
#802DC0 #C0372D #6DC02D #2DB7C0
split-complementary
#802DC0 #B7C02D #2DC037
monochromatic
#3E165D #5F218E #802DC0 #9E53D7 #BA85E2

Accessibility & contrast

On white

6.88
#802DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#802DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802DC0
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DC0#FFFFFF#000000##FFFFFF
##802DC01.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#745275
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #802dc0;
/* rgb */ color: rgb(128, 45, 192);
/* oklch */ color: oklch(49.5% 0.214 305.3);
Tailwind
colors: {
  custom: {
    50: '#ab6fd4',
    500: '#802dc0',
    950: '#000000',
  },
}
SCSS
$custom: #802dc0;
$custom-light: #ab6fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#802dc0",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 273.878,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49545,
    "c": 0.21449,
    "h": 305.3
  },
  "luminance": 0.10272
}

Semantic roles & 50–950 ramp

primary
#802DC0
secondary
#9FCC7D
accent
#E54389
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #802DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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