#804CAC#804CAC

#804CAC is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.152 H 306.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#804CAC
RGBrgb(128, 76, 172)
HSLhsl(273, 39%, 49%)
HSVhsv(273, 56%, 67%)
CMYKcmyk(25.6%, 55.8%, 0%, 32.5%)
CIE-LABlab(42.36, 40.43, -43.19)
CIE-LCHlch(42.36, 59.16, 313.11°)
OKLaboklab(52.02% 0.0912 -0.1215)
OKLCHoklch(52.02% 0.152 306.9)
XYZxyz(18.9314, 12.7368, 40.4829)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CAC #78AC4C
analogous
#504CAC #804CAC #AC4CA8
triadic
#804CAC #AC804C #4CAC80
tetradic
#804CAC #AC504C #78AC4C #4CA8AC
square
#804CAC #AC504C #78AC4C #4CA8AC
split-complementary
#804CAC #A8AC4C #4CAC50
monochromatic
#412657 #603982 #804CAC #9E74C1 #BB9ED4

Accessibility & contrast

On white

5.92
#804CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#804CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CAC
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CAC#FFFFFF#000000##FFFFFF
##804CAC1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B62AF
Deuteranopia (green-blind)
#3E64AA
Tritanopia (blue-blind)
#795E75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804cac;
/* rgb */ color: rgb(128, 76, 172);
/* oklch */ color: oklch(52.0% 0.152 306.9);
Tailwind
colors: {
  custom: {
    50: '#a780c5',
    500: '#804cac',
    950: '#000000',
  },
}
SCSS
$custom: #804cac;
$custom-light: #a780c5;
$custom-dark: #000000;
JSON
{
  "hex": "#804cac",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 172
  },
  "hsl": {
    "h": 272.5,
    "s": 38.71,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.15191,
    "h": 306.9
  },
  "luminance": 0.12737
}

Semantic roles & 50–950 ramp

primary
#804CAC
secondary
#A8C193
accent
#CF598F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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