#802DB3#802DB3

#802DB3 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.202 H 308.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#802DB3
RGBrgb(128, 45, 179)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 70%)
CMYKcmyk(28.5%, 74.9%, 0%, 29.8%)
CIE-LABlab(37.34, 57.10, -55.42)
CIE-LCHlch(37.34, 79.57, 315.86°)
OKLaboklab(48.54% 0.1267 -0.1572)
OKLCHoklch(48.54% 0.202 308.9)
XYZxyz(17.9755, 9.7210, 43.5685)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB3 #60B32D
analogous
#3D2DB3 #802DB3 #B32DA3
triadic
#802DB3 #B3802D #2DB380
tetradic
#802DB3 #B33D2D #60B32D #2DA3B3
square
#802DB3 #B33D2D #60B32D #2DA3B3
split-complementary
#802DB3 #A3B32D #2DB33D
monochromatic
#3A1451 #5D2182 #802DB3 #9F4BD2 #B97CDE

Accessibility & contrast

On white

7.13
#802DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#802DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB3
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB3#FFFFFF#000000##FFFFFF
##802DB31.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#784D6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802db3;
/* rgb */ color: rgb(128, 45, 179);
/* oklch */ color: oklch(48.5% 0.202 308.9);
Tailwind
colors: {
  custom: {
    50: '#aa6ecb',
    500: '#802db3',
    950: '#000000',
  },
}
SCSS
$custom: #802db3;
$custom-light: #aa6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#802db3",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 277.164,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48538,
    "c": 0.20191,
    "h": 308.9
  },
  "luminance": 0.09721
}

Semantic roles & 50–950 ramp

primary
#802DB3
secondary
#94C775
accent
#E34581
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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