#804ED6#804ED6

#804ED6 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.2% C 0.199 H 296.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#804ED6
RGBrgb(128, 78, 214)
HSLhsl(262, 62%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.2%, 63.6%, 0%, 16.1%)
CIE-LABlab(45.49, 49.95, -62.59)
CIE-LCHlch(45.49, 80.08, 308.59°)
OKLaboklab(55.16% 0.0877 -0.1785)
OKLCHoklch(55.16% 0.199 296.2)
XYZxyz(23.7609, 14.8925, 65.2280)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED6 #A4D64E
analogous
#4E60D6 #804ED6 #C44ED6
triadic
#804ED6 #D6804E #4ED680
tetradic
#804ED6 #D64E60 #A4D64E #4ED6C4
square
#804ED6 #D64E60 #A4D64E #4ED6C4
split-complementary
#804ED6 #D6C44E #60D64E
monochromatic
#47208A #602BBB #804ED6 #A480E2 #C7B1ED

Accessibility & contrast

On white

5.28
#804ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#804ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED6
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED6#FFFFFF#000000##FFFFFF
##804ED61.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#6A6D8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804ed6;
/* rgb */ color: rgb(128, 78, 214);
/* oklch */ color: oklch(55.2% 0.199 296.2);
Tailwind
colors: {
  custom: {
    50: '#ab82e3',
    500: '#804ed6',
    950: '#000000',
  },
}
SCSS
$custom: #804ed6;
$custom-light: #ab82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed6",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 262.059,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55163,
    "c": 0.19883,
    "h": 296.2
  },
  "luminance": 0.14893
}

Semantic roles & 50–950 ramp

primary
#804ED6
secondary
#C7DBA4
accent
#E542A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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