#804CD8#804CD8

#804CD8 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.0% C 0.204 H 296.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#804CD8
RGBrgb(128, 76, 216)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(40.7%, 64.8%, 0%, 15.3%)
CIE-LABlab(45.24, 51.52, -64.13)
CIE-LCHlch(45.24, 82.26, 308.78°)
OKLaboklab(55.03% 0.0896 -0.183)
OKLCHoklch(55.03% 0.204 296.1)
XYZxyz(23.8780, 14.7155, 66.5348)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD8 #A4D84C
analogous
#4C5ED8 #804CD8 #C64CD8
triadic
#804CD8 #D8804C #4CD880
tetradic
#804CD8 #D84C5E #A4D84C #4CD8C6
square
#804CD8 #D84C5E #A4D84C #4CD8C6
split-complementary
#804CD8 #D8C64C #5ED84C
monochromatic
#471E8B #6029BE #804CD8 #A47EE3 #C7B1EE

Accessibility & contrast

On white

5.33
#804CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#804CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD8#FFFFFF#000000##FFFFFF
##804CD81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#6A6D8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804cd8;
/* rgb */ color: rgb(128, 76, 216);
/* oklch */ color: oklch(55.0% 0.204 296.1);
Tailwind
colors: {
  custom: {
    50: '#ab81e5',
    500: '#804cd8',
    950: '#000000',
  },
}
SCSS
$custom: #804cd8;
$custom-light: #ab81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd8",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 262.286,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55031,
    "c": 0.20374,
    "h": 296.1
  },
  "luminance": 0.14716
}

Semantic roles & 50–950 ramp

primary
#804CD8
secondary
#C7DCA4
accent
#E741A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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