#802DB0#802DB0

#802DB0 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.199 H 309.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#802DB0
RGBrgb(128, 45, 176)
HSLhsl(278, 59%, 43%)
HSVhsv(278, 74%, 69%)
CMYKcmyk(27.3%, 74.4%, 0%, 31%)
CIE-LABlab(37.12, 56.45, -53.99)
CIE-LCHlch(37.12, 78.11, 316.27°)
OKLaboklab(48.31% 0.1272 -0.153)
OKLCHoklch(48.31% 0.199 309.7)
XYZxyz(17.6754, 9.6009, 41.9879)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB0 #5DB02D
analogous
#3E2DB0 #802DB0 #B02D9E
triadic
#802DB0 #B0802D #2DB080
tetradic
#802DB0 #B03E2D #5DB02D #2D9EB0
square
#802DB0 #B03E2D #5DB02D #2D9EB0
split-complementary
#802DB0 #9EB02D #2DB03E
monochromatic
#39144F #5D217F #802DB0 #9F4AD1 #B97ADD

Accessibility & contrast

On white

7.19
#802DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#802DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB0
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB0#FFFFFF#000000##FFFFFF
##802DB01.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0A58AD
Tritanopia (blue-blind)
#794C6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802db0;
/* rgb */ color: rgb(128, 45, 176);
/* oklch */ color: oklch(48.3% 0.199 309.7);
Tailwind
colors: {
  custom: {
    50: '#a96ec8',
    500: '#802db0',
    950: '#000000',
  },
}
SCSS
$custom: #802db0;
$custom-light: #a96ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#802db0",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 278.015,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48313,
    "c": 0.19901,
    "h": 309.7
  },
  "luminance": 0.09601
}

Semantic roles & 50–950 ramp

primary
#802DB0
secondary
#91C573
accent
#E2457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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