#804CC7#804CC7

#804CC7 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.184 H 299.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#804CC7
RGBrgb(128, 76, 199)
HSLhsl(265, 52%, 54%)
HSVhsv(265, 62%, 78%)
CMYKcmyk(35.7%, 61.8%, 0%, 22%)
CIE-LABlab(44.06, 47.14, -56.26)
CIE-LCHlch(44.06, 73.40, 309.96°)
OKLaboklab(53.8% 0.091 -0.1598)
OKLCHoklch(53.8% 0.184 299.7)
XYZxyz(21.7928, 13.8814, 55.5530)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CC7 #93C74C
analogous
#4C56C7 #804CC7 #BE4CC7
triadic
#804CC7 #C7804C #4CC780
tetradic
#804CC7 #C74C56 #93C74C #4CC7BE
square
#804CC7 #C74C56 #93C74C #4CC7BE
split-complementary
#804CC7 #C7BE4C #56C74C
monochromatic
#462474 #6233A3 #804CC7 #A17BD6 #C2A9E4

Accessibility & contrast

On white

5.56
#804CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#804CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CC7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CC7#FFFFFF#000000##FFFFFF
##804CC71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#1C67C4
Tritanopia (blue-blind)
#706782
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804cc7;
/* rgb */ color: rgb(128, 76, 199);
/* oklch */ color: oklch(53.8% 0.184 299.7);
Tailwind
colors: {
  custom: {
    50: '#a981d9',
    500: '#804cc7',
    950: '#000000',
  },
}
SCSS
$custom: #804cc7;
$custom-light: #a981d9;
$custom-dark: #000000;
JSON
{
  "hex": "#804cc7",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 265.366,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53804,
    "c": 0.18393,
    "h": 299.7
  },
  "luminance": 0.13882
}

Semantic roles & 50–950 ramp

primary
#804CC7
secondary
#BBD29D
accent
#DC4C9F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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