#804ED9#804ED9

#804ED9 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.4% C 0.202 H 295.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#804ED9
RGBrgb(128, 78, 217)
HSLhsl(262, 65%, 58%)
HSVhsv(262, 64%, 85%)
CMYKcmyk(41%, 64.1%, 0%, 14.9%)
CIE-LABlab(45.70, 50.73, -63.96)
CIE-LCHlch(45.70, 81.64, 308.42°)
OKLaboklab(55.38% 0.0874 -0.1825)
OKLCHoklch(55.38% 0.202 295.6)
XYZxyz(24.1476, 15.0472, 67.2643)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED9 #A7D94E
analogous
#4E61D9 #804ED9 #C64ED9
triadic
#804ED9 #D9804E #4ED980
tetradic
#804ED9 #D94E61 #A7D94E #4ED9C6
square
#804ED9 #D94E61 #A7D94E #4ED9C6
split-complementary
#804ED9 #D9C64E #61D94E
monochromatic
#471F8E #6029C0 #804ED9 #A480E4 #C8B3EF

Accessibility & contrast

On white

5.24
#804ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#804ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED9
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED9#FFFFFF#000000##FFFFFF
##804ED91.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#006AD6
Tritanopia (blue-blind)
#696E8D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804ed9;
/* rgb */ color: rgb(128, 78, 217);
/* oklch */ color: oklch(55.4% 0.202 295.6);
Tailwind
colors: {
  custom: {
    50: '#ab82e6',
    500: '#804ed9',
    950: '#000000',
  },
}
SCSS
$custom: #804ed9;
$custom-light: #ab82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed9",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 261.583,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55383,
    "c": 0.20233,
    "h": 295.6
  },
  "luminance": 0.15048
}

Semantic roles & 50–950 ramp

primary
#804ED9
secondary
#C9DDA6
accent
#E840AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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