#804CCC#804CCC

#804CCC is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.2% C 0.190 H 298.5°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#804CCC
RGBrgb(128, 76, 204)
HSLhsl(264, 56%, 55%)
HSVhsv(264, 63%, 80%)
CMYKcmyk(37.3%, 62.7%, 0%, 20%)
CIE-LABlab(44.40, 48.42, -58.60)
CIE-LCHlch(44.40, 76.01, 309.56°)
OKLaboklab(54.16% 0.0907 -0.1667)
OKLCHoklch(54.16% 0.19 298.5)
XYZxyz(22.3829, 14.1174, 58.6607)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CCC #98CC4C
analogous
#4C58CC #804CCC #C04CCC
triadic
#804CCC #CC804C #4CCC80
tetradic
#804CCC #CC4C58 #98CC4C #4CCCC0
square
#804CCC #CC4C58 #98CC4C #4CCCC0
split-complementary
#804CCC #CCC04C #58CC4C
monochromatic
#47237B #6231AA #804CCC #A27CDA #C4ABE7

Accessibility & contrast

On white

5.49
#804CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#804CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CCC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CCC#FFFFFF#000000##FFFFFF
##804CCC1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0C68C9
Tritanopia (blue-blind)
#6F6885
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804ccc;
/* rgb */ color: rgb(128, 76, 204);
/* oklch */ color: oklch(54.2% 0.190 298.5);
Tailwind
colors: {
  custom: {
    50: '#aa81dc',
    500: '#804ccc',
    950: '#000000',
  },
}
SCSS
$custom: #804ccc;
$custom-light: #aa81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#804ccc",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 264.375,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54157,
    "c": 0.1898,
    "h": 298.5
  },
  "luminance": 0.14118
}

Semantic roles & 50–950 ramp

primary
#804CCC
secondary
#BFD59F
accent
#DF49A2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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