#804CB5#804CB5

#804CB5 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.6% C 0.163 H 304.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#804CB5
RGBrgb(128, 76, 181)
HSLhsl(270, 42%, 50%)
HSVhsv(270, 58%, 71%)
CMYKcmyk(29.3%, 58%, 0%, 29%)
CIE-LABlab(42.91, 42.63, -47.62)
CIE-LCHlch(42.91, 63.91, 311.83°)
OKLaboklab(52.59% 0.0914 -0.1345)
OKLCHoklch(52.59% 0.163 304.2)
XYZxyz(19.8252, 13.0943, 45.1901)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB5 #81B54C
analogous
#4C4CB5 #804CB5 #B44CB5
triadic
#804CB5 #B5804C #4CB580
tetradic
#804CB5 #B54C4C #81B54C #4CB5B4
square
#804CB5 #B54C4C #81B54C #4CB5B4
split-complementary
#804CB5 #B5B44C #4CB54C
monochromatic
#43275F #62398B #804CB5 #9F77C7 #BDA3D9

Accessibility & contrast

On white

5.80
#804CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#804CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB5#FFFFFF#000000##FFFFFF
##804CB51.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B8
Deuteranopia (green-blind)
#3565B3
Tritanopia (blue-blind)
#776179
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804cb5;
/* rgb */ color: rgb(128, 76, 181);
/* oklch */ color: oklch(52.6% 0.163 304.2);
Tailwind
colors: {
  custom: {
    50: '#a880cc',
    500: '#804cb5',
    950: '#000000',
  },
}
SCSS
$custom: #804cb5;
$custom-light: #a880cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb5",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 269.714,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5259,
    "c": 0.16263,
    "h": 304.2
  },
  "luminance": 0.13094
}

Semantic roles & 50–950 ramp

primary
#804CB5
secondary
#AFC697
accent
#D15694
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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