#804DEA#804DEA

#804DEA is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.5% C 0.223 H 292.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#804DEA
RGBrgb(128, 77, 234)
HSLhsl(259, 79%, 61%)
HSVhsv(259, 67%, 92%)
CMYKcmyk(45.3%, 67.1%, 0%, 8.2%)
CIE-LABlab(46.76, 55.73, -71.88)
CIE-LCHlch(46.76, 90.95, 307.79°)
OKLaboklab(56.54% 0.0863 -0.2058)
OKLCHoklch(56.54% 0.223 292.7)
XYZxyz(26.4031, 15.8366, 79.4916)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DEA #B7EA4D
analogous
#4D68EA #804DEA #CE4DEA
triadic
#804DEA #EA804D #4DEA80
tetradic
#804DEA #EA4D68 #B7EA4D #4DEACE
square
#804DEA #EA4D68 #B7EA4D #4DEACE
split-complementary
#804DEA #EACE4D #68EA4D
monochromatic
#4414A9 #5A1ADF #804DEA #A784F0 #CEBAF7

Accessibility & contrast

On white

5.04
#804DEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#804DEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DEA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DEA#FFFFFF#000000##FFFFFF
##804DEA1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#607495
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #804dea;
/* rgb */ color: rgb(128, 77, 234);
/* oklch */ color: oklch(56.5% 0.223 292.7);
Tailwind
colors: {
  custom: {
    50: '#ad82f2',
    500: '#804dea',
    950: '#000000',
  },
}
SCSS
$custom: #804dea;
$custom-light: #ad82f2;
$custom-dark: #000000;
JSON
{
  "hex": "#804dea",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 234
  },
  "hsl": {
    "h": 259.49,
    "s": 78.894,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56538,
    "c": 0.22314,
    "h": 292.7
  },
  "luminance": 0.15837
}

Semantic roles & 50–950 ramp

primary
#804DEA
secondary
#D4E7AC
accent
#DB0A97
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #804DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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