#804DB9#804DB9

#804DB9 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.166 H 302.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#804DB9
RGBrgb(128, 77, 185)
HSLhsl(268, 44%, 51%)
HSVhsv(268, 58%, 73%)
CMYKcmyk(30.8%, 58.4%, 0%, 27.5%)
CIE-LABlab(43.36, 43.07, -49.24)
CIE-LCHlch(43.36, 65.42, 311.17°)
OKLaboklab(53% 0.0902 -0.1392)
OKLCHoklch(53% 0.166 302.9)
XYZxyz(20.3109, 13.3997, 47.4059)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DB9 #86B94D
analogous
#4D50B9 #804DB9 #B64DB9
triadic
#804DB9 #B9804D #4DB980
tetradic
#804DB9 #B94D50 #86B94D #4DB9B6
square
#804DB9 #B94D50 #86B94D #4DB9B6
split-complementary
#804DB9 #B9B64D #50B94D
monochromatic
#442764 #623990 #804DB9 #9F79CA #BFA5DC

Accessibility & contrast

On white

5.71
#804DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#804DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DB9
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DB9#FFFFFF#000000##FFFFFF
##804DB91.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C65BD
Deuteranopia (green-blind)
#3366B7
Tritanopia (blue-blind)
#75637B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804db9;
/* rgb */ color: rgb(128, 77, 185);
/* oklch */ color: oklch(53.0% 0.166 302.9);
Tailwind
colors: {
  custom: {
    50: '#a881cf',
    500: '#804db9',
    950: '#000000',
  },
}
SCSS
$custom: #804db9;
$custom-light: #a881cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804db9",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 268.333,
    "s": 43.548,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53002,
    "c": 0.16588,
    "h": 302.9
  },
  "luminance": 0.134
}

Semantic roles & 50–950 ramp

primary
#804DB9
secondary
#B2C999
accent
#D35597
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804DB9

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

Preview Lab → · Contrast checker → · Palette generator →

#804DB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva