#804CD5#804CD5

#804CD5 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.8% C 0.200 H 296.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#804CD5
RGBrgb(128, 76, 213)
HSLhsl(263, 62%, 57%)
HSVhsv(263, 64%, 84%)
CMYKcmyk(39.9%, 64.3%, 0%, 16.5%)
CIE-LABlab(45.03, 50.74, -62.76)
CIE-LCHlch(45.03, 80.70, 308.96°)
OKLaboklab(54.81% 0.0899 -0.1789)
OKLCHoklch(54.81% 0.2 296.7)
XYZxyz(23.4937, 14.5617, 64.5108)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD5 #A1D54C
analogous
#4C5DD5 #804CD5 #C54CD5
triadic
#804CD5 #D5804C #4CD580
tetradic
#804CD5 #D54C5D #A1D54C #4CD5C5
square
#804CD5 #D54C5D #A1D54C #4CD5C5
split-complementary
#804CD5 #D5C54C #5DD54C
monochromatic
#472087 #612BB9 #804CD5 #A37EE1 #C6AFEC

Accessibility & contrast

On white

5.37
#804CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#804CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD5#FFFFFF#000000##FFFFFF
##804CD51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#0069D2
Tritanopia (blue-blind)
#6B6C8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804cd5;
/* rgb */ color: rgb(128, 76, 213);
/* oklch */ color: oklch(54.8% 0.200 296.7);
Tailwind
colors: {
  custom: {
    50: '#ab81e3',
    500: '#804cd5',
    950: '#000000',
  },
}
SCSS
$custom: #804cd5;
$custom-light: #ab81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd5",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 262.774,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54809,
    "c": 0.20027,
    "h": 296.7
  },
  "luminance": 0.14562
}

Semantic roles & 50–950 ramp

primary
#804CD5
secondary
#C5DAA2
accent
#E543A7
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #804CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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