#802DB6#802DB6

#802DB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.205 H 308.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#802DB6
RGBrgb(128, 45, 182)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(29.7%, 75.3%, 0%, 28.6%)
CIE-LABlab(37.56, 57.76, -56.83)
CIE-LCHlch(37.56, 81.03, 315.46°)
OKLaboklab(48.77% 0.1261 -0.1614)
OKLCHoklch(48.77% 0.205 308)
XYZxyz(18.2822, 9.8436, 45.1838)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB6 #63B62D
analogous
#3B2DB6 #802DB6 #B62DA8
triadic
#802DB6 #B6802D #2DB680
tetradic
#802DB6 #B63B2D #63B62D #2DA8B6
square
#802DB6 #B63B2D #63B62D #2DA8B6
split-complementary
#802DB6 #A8B62D #2DB63B
monochromatic
#3B1554 #5D2185 #802DB6 #9E4DD3 #B97EDF

Accessibility & contrast

On white

7.07
#802DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#802DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB6#FFFFFF#000000##FFFFFF
##802DB61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#774E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802db6;
/* rgb */ color: rgb(128, 45, 182);
/* oklch */ color: oklch(48.8% 0.205 308.0);
Tailwind
colors: {
  custom: {
    50: '#aa6fcd',
    500: '#802db6',
    950: '#000000',
  },
}
SCSS
$custom: #802db6;
$custom-light: #aa6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#802db6",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 276.35,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48766,
    "c": 0.20481,
    "h": 308
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#802DB6
secondary
#97C877
accent
#E34483
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #802DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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