#804CE3#804CE3

#804CE3 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.9% C 0.216 H 294.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#804CE3
RGBrgb(128, 76, 227)
HSLhsl(261, 73%, 59%)
HSVhsv(261, 67%, 89%)
CMYKcmyk(43.6%, 66.5%, 0%, 11%)
CIE-LABlab(46.05, 54.39, -69.08)
CIE-LCHlch(46.05, 87.93, 308.22°)
OKLaboklab(55.86% 0.0883 -0.1975)
OKLCHoklch(55.86% 0.216 294.1)
XYZxyz(25.3479, 15.3034, 74.2765)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CE3 #AFE34C
analogous
#4C64E3 #804CE3 #CB4CE3
triadic
#804CE3 #E3804C #4CE380
tetradic
#804CE3 #E34C64 #AFE34C #4CE3CB
square
#804CE3 #E34C64 #AFE34C #4CE3CB
split-complementary
#804CE3 #E3CB4C #64E34C
monochromatic
#46189C #5D21D1 #804CE3 #A681EB #CBB6F4

Accessibility & contrast

On white

5.17
#804CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#804CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CE3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CE3#FFFFFF#000000##FFFFFF
##804CE31.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#006AE0
Tritanopia (blue-blind)
#647191
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804ce3;
/* rgb */ color: rgb(128, 76, 227);
/* oklch */ color: oklch(55.9% 0.216 294.1);
Tailwind
colors: {
  custom: {
    50: '#ac81ed',
    500: '#804ce3',
    950: '#000000',
  },
}
SCSS
$custom: #804ce3;
$custom-light: #ac81ed;
$custom-dark: #000000;
JSON
{
  "hex": "#804ce3",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 260.662,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55863,
    "c": 0.21637,
    "h": 294.1
  },
  "luminance": 0.15304
}

Semantic roles & 50–950 ramp

primary
#804CE3
secondary
#CFE3A8
accent
#F038B0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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