#804CC8#804CC8

#804CC8 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.9% C 0.185 H 299.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#804CC8
RGBrgb(128, 76, 200)
HSLhsl(265, 53%, 54%)
HSVhsv(265, 62%, 78%)
CMYKcmyk(36%, 62%, 0%, 21.6%)
CIE-LABlab(44.13, 47.39, -56.73)
CIE-LCHlch(44.13, 73.92, 309.88°)
OKLaboklab(53.87% 0.091 -0.1612)
OKLCHoklch(53.87% 0.185 299.4)
XYZxyz(21.9093, 13.9280, 56.1665)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CC8 #94C84C
analogous
#4C56C8 #804CC8 #BE4CC8
triadic
#804CC8 #C8804C #4CC880
tetradic
#804CC8 #C84C56 #94C84C #4CC8BE
square
#804CC8 #C84C56 #94C84C #4CC8BE
split-complementary
#804CC8 #C8BE4C #56C84C
monochromatic
#462475 #6232A4 #804CC8 #A17BD6 #C2AAE5

Accessibility & contrast

On white

5.55
#804CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#804CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CC8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CC8#FFFFFF#000000##FFFFFF
##804CC81.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#1967C5
Tritanopia (blue-blind)
#706783
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804cc8;
/* rgb */ color: rgb(128, 76, 200);
/* oklch */ color: oklch(53.9% 0.185 299.4);
Tailwind
colors: {
  custom: {
    50: '#aa81d9',
    500: '#804cc8',
    950: '#000000',
  },
}
SCSS
$custom: #804cc8;
$custom-light: #aa81d9;
$custom-dark: #000000;
JSON
{
  "hex": "#804cc8",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 200
  },
  "hsl": {
    "h": 265.161,
    "s": 52.991,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53874,
    "c": 0.1851,
    "h": 299.4
  },
  "luminance": 0.13928
}

Semantic roles & 50–950 ramp

primary
#804CC8
secondary
#BCD29E
accent
#DC4BA0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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