#804CB6#804CB6

#804CB6 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.164 H 303.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#804CB6
RGBrgb(128, 76, 182)
HSLhsl(269, 42%, 51%)
HSVhsv(269, 58%, 71%)
CMYKcmyk(29.7%, 58.2%, 0%, 28.6%)
CIE-LABlab(42.97, 42.87, -48.11)
CIE-LCHlch(42.97, 64.44, 311.70°)
OKLaboklab(52.65% 0.0915 -0.1359)
OKLCHoklch(52.65% 0.164 303.9)
XYZxyz(19.9281, 13.1355, 45.7325)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB6 #82B64C
analogous
#4C4DB6 #804CB6 #B54CB6
triadic
#804CB6 #B6804C #4CB680
tetradic
#804CB6 #B64C4D #82B64C #4CB6B5
square
#804CB6 #B64C4D #82B64C #4CB6B5
split-complementary
#804CB6 #B6B54C #4DB64C
monochromatic
#432760 #62398C #804CB6 #9F77C8 #BEA3D9

Accessibility & contrast

On white

5.79
#804CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#804CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB6#FFFFFF#000000##FFFFFF
##804CB61.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E64B9
Deuteranopia (green-blind)
#3465B4
Tritanopia (blue-blind)
#76617A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804cb6;
/* rgb */ color: rgb(128, 76, 182);
/* oklch */ color: oklch(52.7% 0.164 303.9);
Tailwind
colors: {
  custom: {
    50: '#a880cc',
    500: '#804cb6',
    950: '#000000',
  },
}
SCSS
$custom: #804cb6;
$custom-light: #a880cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb6",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 269.434,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52655,
    "c": 0.16382,
    "h": 303.9
  },
  "luminance": 0.13135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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