#804CC5#804CC5

#804CC5 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.7% C 0.182 H 300.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#804CC5
RGBrgb(128, 76, 197)
HSLhsl(266, 51%, 54%)
HSVhsv(266, 61%, 77%)
CMYKcmyk(35%, 61.4%, 0%, 22.7%)
CIE-LABlab(43.93, 46.63, -55.31)
CIE-LCHlch(43.93, 72.35, 310.13°)
OKLaboklab(53.66% 0.0911 -0.1571)
OKLCHoklch(53.66% 0.182 300.1)
XYZxyz(21.5621, 13.7891, 54.3381)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CC5 #91C54C
analogous
#4C54C5 #804CC5 #BC4CC5
triadic
#804CC5 #C5804C #4CC580
tetradic
#804CC5 #C54C54 #91C54C #4CC5BC
square
#804CC5 #C54C54 #91C54C #4CC5BC
split-complementary
#804CC5 #C5BC4C #54C54C
monochromatic
#462572 #6234A0 #804CC5 #A17AD4 #C2A8E3

Accessibility & contrast

On white

5.59
#804CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#804CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CC5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CC5#FFFFFF#000000##FFFFFF
##804CC51.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#2067C2
Tritanopia (blue-blind)
#716681
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804cc5;
/* rgb */ color: rgb(128, 76, 197);
/* oklch */ color: oklch(53.7% 0.182 300.1);
Tailwind
colors: {
  custom: {
    50: '#a981d7',
    500: '#804cc5',
    950: '#000000',
  },
}
SCSS
$custom: #804cc5;
$custom-light: #a981d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804cc5",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 197
  },
  "hsl": {
    "h": 265.785,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53664,
    "c": 0.18159,
    "h": 300.1
  },
  "luminance": 0.13789
}

Semantic roles & 50–950 ramp

primary
#804CC5
secondary
#BAD09C
accent
#DB4D9E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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