#804FC4#804FC4

#804FC4 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.176 H 299.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#804FC4
RGBrgb(128, 79, 196)
HSLhsl(265, 50%, 54%)
HSVhsv(265, 60%, 77%)
CMYKcmyk(34.7%, 59.7%, 0%, 23.1%)
CIE-LABlab(44.47, 44.75, -53.86)
CIE-LCHlch(44.47, 70.03, 309.72°)
OKLaboklab(54.04% 0.0876 -0.1528)
OKLCHoklch(54.04% 0.176 299.8)
XYZxyz(21.6595, 14.1665, 53.8071)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FC4 #93C44F
analogous
#4F59C4 #804FC4 #BB4FC4
triadic
#804FC4 #C4804F #4FC480
tetradic
#804FC4 #C44F59 #93C44F #4FC4BB
square
#804FC4 #C44F59 #93C44F #4FC4BB
split-complementary
#804FC4 #C4BB4F #59C44F
monochromatic
#462672 #6236A0 #804FC4 #A17DD3 #C2ABE3

Accessibility & contrast

On white

5.48
#804FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#804FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FC4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FC4#FFFFFF#000000##FFFFFF
##804FC41.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0769C8
Deuteranopia (green-blind)
#2768C1
Tritanopia (blue-blind)
#716882
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804fc4;
/* rgb */ color: rgb(128, 79, 196);
/* oklch */ color: oklch(54.0% 0.176 299.8);
Tailwind
colors: {
  custom: {
    50: '#a982d6',
    500: '#804fc4',
    950: '#000000',
  },
}
SCSS
$custom: #804fc4;
$custom-light: #a982d6;
$custom-dark: #000000;
JSON
{
  "hex": "#804fc4",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 265.128,
    "s": 49.787,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54038,
    "c": 0.17612,
    "h": 299.8
  },
  "luminance": 0.14167
}

Semantic roles & 50–950 ramp

primary
#804FC4
secondary
#BBD09E
accent
#D94E9F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #804FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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