#804ED7#804ED7

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

Color values

HEX#804ED7
RGBrgb(128, 78, 215)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.5%, 63.7%, 0%, 15.7%)
CIE-LABlab(45.56, 50.21, -63.05)
CIE-LCHlch(45.56, 80.60, 308.53°)
OKLaboklab(55.24% 0.0876 -0.1798)
OKLCHoklch(55.24% 0.2 296)
XYZxyz(23.8890, 14.9438, 65.9026)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED7 #A5D74E
analogous
#4E60D7 #804ED7 #C54ED7
triadic
#804ED7 #D7804E #4ED780
tetradic
#804ED7 #D74E60 #A5D74E #4ED7C5
square
#804ED7 #D74E60 #A5D74E #4ED7C5
split-complementary
#804ED7 #D7C54E #60D74E
monochromatic
#471F8B #602BBD #804ED7 #A480E2 #C8B2EE

Accessibility & contrast

On white

5.26
#804ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#804ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED7#FFFFFF#000000##FFFFFF
##804ED71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #804ed7;
/* rgb */ color: rgb(128, 78, 215);
/* oklch */ color: oklch(55.2% 0.200 296.0);
Tailwind
colors: {
  custom: {
    50: '#ab82e4',
    500: '#804ed7',
    950: '#000000',
  },
}
SCSS
$custom: #804ed7;
$custom-light: #ab82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed7",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 215
  },
  "hsl": {
    "h": 261.898,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55236,
    "c": 0.19999,
    "h": 296
  },
  "luminance": 0.14944
}

Semantic roles & 50–950 ramp

primary
#804ED7
secondary
#C8DCA5
accent
#E642AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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