#802DB8#802DB8

#802DB8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.207 H 307.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#802DB8
RGBrgb(128, 45, 184)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 72%)
CMYKcmyk(30.4%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.71, 58.20, -57.77)
CIE-LCHlch(37.71, 82.01, 315.21°)
OKLaboklab(48.92% 0.1257 -0.1641)
OKLCHoklch(48.92% 0.207 307.4)
XYZxyz(18.4904, 9.9269, 46.2801)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB8 #65B82D
analogous
#3A2DB8 #802DB8 #B82DAB
triadic
#802DB8 #B8802D #2DB880
tetradic
#802DB8 #B83A2D #65B82D #2DABB8
square
#802DB8 #B83A2D #65B82D #2DABB8
split-complementary
#802DB8 #ABB82D #2DB83A
monochromatic
#3C1556 #5E2187 #802DB8 #9E4ED4 #B980E0

Accessibility & contrast

On white

7.03
#802DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#802DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB8#FFFFFF#000000##FFFFFF
##802DB81.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#774F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802db8;
/* rgb */ color: rgb(128, 45, 184);
/* oklch */ color: oklch(48.9% 0.207 307.4);
Tailwind
colors: {
  custom: {
    50: '#aa6fce',
    500: '#802db8',
    950: '#000000',
  },
}
SCSS
$custom: #802db8;
$custom-light: #aa6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#802db8",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 275.827,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4892,
    "c": 0.20674,
    "h": 307.4
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#802DB8
secondary
#99C978
accent
#E44484
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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