#802DB5#802DB5

#802DB5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.204 H 308.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#802DB5
RGBrgb(128, 45, 181)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 71%)
CMYKcmyk(29.3%, 75.1%, 0%, 29%)
CIE-LABlab(37.49, 57.54, -56.36)
CIE-LCHlch(37.49, 80.55, 315.59°)
OKLaboklab(48.69% 0.1263 -0.16)
OKLCHoklch(48.69% 0.204 308.3)
XYZxyz(18.1792, 9.8025, 44.6415)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB5 #62B52D
analogous
#3C2DB5 #802DB5 #B52DA6
triadic
#802DB5 #B5802D #2DB580
tetradic
#802DB5 #B53C2D #62B52D #2DA6B5
square
#802DB5 #B53C2D #62B52D #2DA6B5
split-complementary
#802DB5 #A6B52D #2DB53C
monochromatic
#3B1553 #5D2184 #802DB5 #9E4DD3 #B97EDF

Accessibility & contrast

On white

7.09
#802DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#802DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB5#FFFFFF#000000##FFFFFF
##802DB51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#784E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802db5;
/* rgb */ color: rgb(128, 45, 181);
/* oklch */ color: oklch(48.7% 0.204 308.3);
Tailwind
colors: {
  custom: {
    50: '#aa6fcc',
    500: '#802db5',
    950: '#000000',
  },
}
SCSS
$custom: #802db5;
$custom-light: #aa6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#802db5",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 276.618,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4869,
    "c": 0.20384,
    "h": 308.3
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#802DB5
secondary
#96C776
accent
#E34482
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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