#804CB8#804CB8

#804CB8 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.8% C 0.166 H 303.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#804CB8
RGBrgb(128, 76, 184)
HSLhsl(269, 43%, 51%)
HSVhsv(269, 59%, 72%)
CMYKcmyk(30.4%, 58.7%, 0%, 27.8%)
CIE-LABlab(43.09, 43.37, -49.09)
CIE-LCHlch(43.09, 65.50, 311.46°)
OKLaboklab(52.79% 0.0915 -0.1388)
OKLCHoklch(52.79% 0.166 303.4)
XYZxyz(20.1363, 13.2188, 46.8288)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB8 #84B84C
analogous
#4C4EB8 #804CB8 #B64CB8
triadic
#804CB8 #B8804C #4CB880
tetradic
#804CB8 #B84C4E #84B84C #4CB8B6
square
#804CB8 #B84C4E #84B84C #4CB8B6
split-complementary
#804CB8 #B8B64C #4EB84C
monochromatic
#442763 #62388E #804CB8 #9F78C9 #BEA4DB

Accessibility & contrast

On white

5.76
#804CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#804CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB8#FFFFFF#000000##FFFFFF
##804CB81.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B65BC
Deuteranopia (green-blind)
#3266B6
Tritanopia (blue-blind)
#76627B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804cb8;
/* rgb */ color: rgb(128, 76, 184);
/* oklch */ color: oklch(52.8% 0.166 303.4);
Tailwind
colors: {
  custom: {
    50: '#a880ce',
    500: '#804cb8',
    950: '#000000',
  },
}
SCSS
$custom: #804cb8;
$custom-light: #a880ce;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb8",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 268.889,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52785,
    "c": 0.1662,
    "h": 303.4
  },
  "luminance": 0.13219
}

Semantic roles & 50–950 ramp

primary
#804CB8
secondary
#B1C898
accent
#D35596
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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