#804EE5#804EE5

#804EE5 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.216 H 293.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#804EE5
RGBrgb(128, 78, 229)
HSLhsl(260, 74%, 60%)
HSVhsv(260, 66%, 90%)
CMYKcmyk(44.1%, 65.9%, 0%, 10.2%)
CIE-LABlab(46.57, 53.89, -69.36)
CIE-LCHlch(46.57, 87.84, 307.85°)
OKLaboklab(56.29% 0.086 -0.1984)
OKLCHoklch(56.29% 0.216 293.4)
XYZxyz(25.7655, 15.6944, 75.7853)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EE5 #B3E54E
analogous
#4E67E5 #804EE5 #CC4EE5
triadic
#804EE5 #E5804E #4EE580
tetradic
#804EE5 #E54E67 #B3E54E #4EE5CC
square
#804EE5 #E54E67 #B3E54E #4EE5CC
split-complementary
#804EE5 #E5CC4E #67E54E
monochromatic
#4518A1 #5C1FD6 #804EE5 #A683ED #CDB9F5

Accessibility & contrast

On white

5.07
#804EE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#804EE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EE5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EE5#FFFFFF#000000##FFFFFF
##804EE51.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#006CE2
Tritanopia (blue-blind)
#637293
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #804ee5;
/* rgb */ color: rgb(128, 78, 229);
/* oklch */ color: oklch(56.3% 0.216 293.4);
Tailwind
colors: {
  custom: {
    50: '#ac83ee',
    500: '#804ee5',
    950: '#000000',
  },
}
SCSS
$custom: #804ee5;
$custom-light: #ac83ee;
$custom-dark: #000000;
JSON
{
  "hex": "#804ee5",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 229
  },
  "hsl": {
    "h": 259.868,
    "s": 74.384,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56286,
    "c": 0.21622,
    "h": 293.4
  },
  "luminance": 0.15695
}

Semantic roles & 50–950 ramp

primary
#804EE5
secondary
#D1E4AA
accent
#D70F94
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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