#804CC4#804CC4

#804CC4 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.180 H 300.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#804CC4
RGBrgb(128, 76, 196)
HSLhsl(266, 50%, 53%)
HSVhsv(266, 61%, 77%)
CMYKcmyk(34.7%, 61.2%, 0%, 23.1%)
CIE-LABlab(43.86, 46.38, -54.84)
CIE-LCHlch(43.86, 71.82, 310.22°)
OKLaboklab(53.6% 0.0912 -0.1557)
OKLCHoklch(53.6% 0.18 300.4)
XYZxyz(21.4479, 13.7434, 53.7366)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CC4 #90C44C
analogous
#4C54C4 #804CC4 #BC4CC4
triadic
#804CC4 #C4804C #4CC480
tetradic
#804CC4 #C44C54 #90C44C #4CC4BC
square
#804CC4 #C44C54 #90C44C #4CC4BC
split-complementary
#804CC4 #C4BC4C #54C44C
monochromatic
#462571 #62349F #804CC4 #A17AD3 #C1A8E2

Accessibility & contrast

On white

5.60
#804CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#804CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CC4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CC4#FFFFFF#000000##FFFFFF
##804CC41.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#2267C1
Tritanopia (blue-blind)
#726681
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804cc4;
/* rgb */ color: rgb(128, 76, 196);
/* oklch */ color: oklch(53.6% 0.180 300.4);
Tailwind
colors: {
  custom: {
    50: '#a981d7',
    500: '#804cc4',
    950: '#000000',
  },
}
SCSS
$custom: #804cc4;
$custom-light: #a981d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804cc4",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 266,
    "s": 50.42,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53595,
    "c": 0.18041,
    "h": 300.4
  },
  "luminance": 0.13744
}

Semantic roles & 50–950 ramp

primary
#804CC4
secondary
#B9D09C
accent
#DA4E9D
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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