#804CA8#804CA8

#804CA8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.147 H 308.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#804CA8
RGBrgb(128, 76, 168)
HSLhsl(274, 38%, 48%)
HSVhsv(274, 55%, 66%)
CMYKcmyk(23.8%, 54.8%, 0%, 34.1%)
CIE-LABlab(42.13, 39.47, -41.19)
CIE-LCHlch(42.13, 57.05, 313.78°)
OKLaboklab(51.77% 0.091 -0.1156)
OKLCHoklch(51.77% 0.147 308.2)
XYZxyz(18.5530, 12.5855, 38.4901)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA8 #74A84C
analogous
#524CA8 #804CA8 #A84CA2
triadic
#804CA8 #A8804C #4CA880
tetradic
#804CA8 #A8524C #74A84C #4CA2A8
square
#804CA8 #A8524C #74A84C #4CA2A8
split-complementary
#804CA8 #A2A84C #4CA852
monochromatic
#402654 #60397E #804CA8 #9E72BF #BB9CD2

Accessibility & contrast

On white

5.97
#804CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#804CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA8#FFFFFF#000000##FFFFFF
##804CA81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AB
Deuteranopia (green-blind)
#4164A6
Tritanopia (blue-blind)
#7A5C73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ca8;
/* rgb */ color: rgb(128, 76, 168);
/* oklch */ color: oklch(51.8% 0.147 308.2);
Tailwind
colors: {
  custom: {
    50: '#a780c2',
    500: '#804ca8',
    950: '#000000',
  },
}
SCSS
$custom: #804ca8;
$custom-light: #a780c2;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca8",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 273.913,
    "s": 37.705,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51772,
    "c": 0.14714,
    "h": 308.2
  },
  "luminance": 0.12585
}

Semantic roles & 50–950 ramp

primary
#804CA8
secondary
#A5BF91
accent
#CE5A8C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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