#804CE5#804CE5

#804CE5 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.219 H 293.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#804CE5
RGBrgb(128, 76, 229)
HSLhsl(260, 75%, 60%)
HSVhsv(260, 67%, 90%)
CMYKcmyk(44.1%, 66.8%, 0%, 10.2%)
CIE-LABlab(46.20, 54.92, -69.97)
CIE-LCHlch(46.20, 88.95, 308.13°)
OKLaboklab(56.02% 0.088 -0.2002)
OKLCHoklch(56.02% 0.219 293.7)
XYZxyz(25.6255, 15.4145, 75.7387)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CE5 #B1E54C
analogous
#4C65E5 #804CE5 #CC4CE5
triadic
#804CE5 #E5804C #4CE580
tetradic
#804CE5 #E54C65 #B1E54C #4CE5CC
square
#804CE5 #E54C65 #B1E54C #4CE5CC
split-complementary
#804CE5 #E5CC4C #65E54C
monochromatic
#45179F #5D1FD5 #804CE5 #A681ED #CCB7F5

Accessibility & contrast

On white

5.14
#804CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#804CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CE5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CE5#FFFFFF#000000##FFFFFF
##804CE51.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#006BE2
Tritanopia (blue-blind)
#637192
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804ce5;
/* rgb */ color: rgb(128, 76, 229);
/* oklch */ color: oklch(56.0% 0.219 293.7);
Tailwind
colors: {
  custom: {
    50: '#ac81ee',
    500: '#804ce5',
    950: '#000000',
  },
}
SCSS
$custom: #804ce5;
$custom-light: #ac81ee;
$custom-dark: #000000;
JSON
{
  "hex": "#804ce5",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 260.392,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56017,
    "c": 0.21865,
    "h": 293.7
  },
  "luminance": 0.15415
}

Semantic roles & 50–950 ramp

primary
#804CE5
secondary
#D0E4A9
accent
#F137B2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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