#804AC2#804AC2

#804AC2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.2% C 0.181 H 301.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#804AC2
RGBrgb(128, 74, 194)
HSLhsl(267, 50%, 53%)
HSVhsv(267, 62%, 76%)
CMYKcmyk(34%, 61.9%, 0%, 23.9%)
CIE-LABlab(43.33, 46.94, -54.53)
CIE-LCHlch(43.33, 71.95, 310.72°)
OKLaboklab(53.17% 0.0936 -0.1548)
OKLCHoklch(53.17% 0.181 301.2)
XYZxyz(21.0862, 13.3817, 52.5005)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AC2 #8CC24A
analogous
#4A50C2 #804AC2 #BC4AC2
triadic
#804AC2 #C2804A #4AC280
tetradic
#804AC2 #C24A50 #8CC24A #4AC2BC
square
#804AC2 #C24A50 #8CC24A #4AC2BC
split-complementary
#804AC2 #C2BC4A #50C24A
monochromatic
#45256D #62349B #804AC2 #A078D1 #C0A6E1

Accessibility & contrast

On white

5.71
#804AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#804AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AC2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AC2#FFFFFF#000000##FFFFFF
##804AC21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2166BF
Tritanopia (blue-blind)
#72647F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804ac2;
/* rgb */ color: rgb(128, 74, 194);
/* oklch */ color: oklch(53.2% 0.181 301.2);
Tailwind
colors: {
  custom: {
    50: '#a97fd5',
    500: '#804ac2',
    950: '#000000',
  },
}
SCSS
$custom: #804ac2;
$custom-light: #a97fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#804ac2",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 267,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53168,
    "c": 0.18089,
    "h": 301.2
  },
  "luminance": 0.13382
}

Semantic roles & 50–950 ramp

primary
#804AC2
secondary
#B7CE9A
accent
#D94F9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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