#802DB7#802DB7

#802DB7 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.206 H 307.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#802DB7
RGBrgb(128, 45, 183)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 75%, 72%)
CMYKcmyk(30.1%, 75.4%, 0%, 28.2%)
CIE-LABlab(37.64, 57.98, -57.30)
CIE-LCHlch(37.64, 81.52, 315.34°)
OKLaboklab(48.84% 0.1259 -0.1628)
OKLCHoklch(48.84% 0.206 307.7)
XYZxyz(18.3859, 9.8851, 45.7300)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB7 #64B72D
analogous
#3B2DB7 #802DB7 #B72DA9
triadic
#802DB7 #B7802D #2DB780
tetradic
#802DB7 #B73B2D #64B72D #2DA9B7
square
#802DB7 #B73B2D #64B72D #2DA9B7
split-complementary
#802DB7 #A9B72D #2DB73B
monochromatic
#3B1555 #5E2186 #802DB7 #9E4ED3 #B97FDF

Accessibility & contrast

On white

7.05
#802DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#802DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB7#FFFFFF#000000##FFFFFF
##802DB71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#774F70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802db7;
/* rgb */ color: rgb(128, 45, 183);
/* oklch */ color: oklch(48.8% 0.206 307.7);
Tailwind
colors: {
  custom: {
    50: '#aa6fcd',
    500: '#802db7',
    950: '#000000',
  },
}
SCSS
$custom: #802db7;
$custom-light: #aa6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#802db7",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 276.087,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48843,
    "c": 0.20577,
    "h": 307.7
  },
  "luminance": 0.09885
}

Semantic roles & 50–950 ramp

primary
#802DB7
secondary
#98C878
accent
#E44484
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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