#804CB2#804CB2

#804CB2 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.159 H 305.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#804CB2
RGBrgb(128, 76, 178)
HSLhsl(271, 40%, 50%)
HSVhsv(271, 57%, 70%)
CMYKcmyk(28.1%, 57.3%, 0%, 30.2%)
CIE-LABlab(42.72, 41.89, -46.15)
CIE-LCHlch(42.72, 62.33, 312.23°)
OKLaboklab(52.4% 0.0914 -0.1302)
OKLCHoklch(52.4% 0.159 305.1)
XYZxyz(19.5207, 12.9725, 43.5864)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB2 #7EB24C
analogous
#4D4CB2 #804CB2 #B24CB1
triadic
#804CB2 #B2804C #4CB280
tetradic
#804CB2 #B24D4C #7EB24C #4CB1B2
square
#804CB2 #B24D4C #7EB24C #4CB1B2
split-complementary
#804CB2 #B1B24C #4CB24D
monochromatic
#42275C #613A87 #804CB2 #9E76C5 #BDA1D7

Accessibility & contrast

On white

5.84
#804CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#804CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB2#FFFFFF#000000##FFFFFF
##804CB21.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#3865B0
Tritanopia (blue-blind)
#776078
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804cb2;
/* rgb */ color: rgb(128, 76, 178);
/* oklch */ color: oklch(52.4% 0.159 305.1);
Tailwind
colors: {
  custom: {
    50: '#a880c9',
    500: '#804cb2',
    950: '#000000',
  },
}
SCSS
$custom: #804cb2;
$custom-light: #a880c9;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb2",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 270.588,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52396,
    "c": 0.15906,
    "h": 305.1
  },
  "luminance": 0.12972
}

Semantic roles & 50–950 ramp

primary
#804CB2
secondary
#ACC496
accent
#D05893
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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