#804CA2#804CA2

#804CA2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.4% C 0.140 H 310.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#804CA2
RGBrgb(128, 76, 162)
HSLhsl(276, 36%, 47%)
HSVhsv(276, 53%, 64%)
CMYKcmyk(21%, 53.1%, 0%, 36.5%)
CIE-LABlab(41.79, 38.06, -38.16)
CIE-LCHlch(41.79, 53.89, 314.93°)
OKLaboklab(51.41% 0.0905 -0.1068)
OKLCHoklch(51.41% 0.14 310.3)
XYZxyz(18.0069, 12.3670, 35.6139)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA2 #6EA24C
analogous
#554CA2 #804CA2 #A24C99
triadic
#804CA2 #A2804C #4CA280
tetradic
#804CA2 #A2554C #6EA24C #4C99A2
square
#804CA2 #A2554C #6EA24C #4C99A2
split-complementary
#804CA2 #99A24C #4CA255
monochromatic
#3E254F #5F3878 #804CA2 #9E70BC #BA99CF

Accessibility & contrast

On white

6.05
#804CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#804CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA2#FFFFFF#000000##FFFFFF
##804CA21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#7C5B70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ca2;
/* rgb */ color: rgb(128, 76, 162);
/* oklch */ color: oklch(51.4% 0.140 310.3);
Tailwind
colors: {
  custom: {
    50: '#a780be',
    500: '#804ca2',
    950: '#000000',
  },
}
SCSS
$custom: #804ca2;
$custom-light: #a780be;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca2",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 276.279,
    "s": 36.134,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51413,
    "c": 0.14001,
    "h": 310.3
  },
  "luminance": 0.12367
}

Semantic roles & 50–950 ramp

primary
#804CA2
secondary
#A0BC8E
accent
#CC5C88
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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