#804CB4#804CB4

#804CB4 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.5% C 0.161 H 304.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#804CB4
RGBrgb(128, 76, 180)
HSLhsl(270, 41%, 50%)
HSVhsv(270, 58%, 71%)
CMYKcmyk(28.9%, 57.8%, 0%, 29.4%)
CIE-LABlab(42.84, 42.38, -47.14)
CIE-LCHlch(42.84, 63.38, 311.96°)
OKLaboklab(52.53% 0.0914 -0.1331)
OKLCHoklch(52.53% 0.161 304.5)
XYZxyz(19.7229, 13.0535, 44.6517)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB4 #80B44C
analogous
#4C4CB4 #804CB4 #B44CB4
triadic
#804CB4 #B4804C #4CB480
tetradic
#804CB4 #B44C4C #80B44C #4CB4B4
square
#804CB4 #B44C4C #80B44C #4CB4B4
split-complementary
#804CB4 #B4B44C #4CB44C
monochromatic
#43275E #613A89 #804CB4 #9F77C6 #BDA2D8

Accessibility & contrast

On white

5.82
#804CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#804CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB4#FFFFFF#000000##FFFFFF
##804CB41.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2164B7
Deuteranopia (green-blind)
#3665B2
Tritanopia (blue-blind)
#776079
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804cb4;
/* rgb */ color: rgb(128, 76, 180);
/* oklch */ color: oklch(52.5% 0.161 304.5);
Tailwind
colors: {
  custom: {
    50: '#a880cb',
    500: '#804cb4',
    950: '#000000',
  },
}
SCSS
$custom: #804cb4;
$custom-light: #a880cb;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb4",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 270,
    "s": 40.945,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52525,
    "c": 0.16144,
    "h": 304.5
  },
  "luminance": 0.13053
}

Semantic roles & 50–950 ramp

primary
#804CB4
secondary
#AEC597
accent
#D15794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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