#804CDE#804CDE

#804CDE is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.5% C 0.211 H 295.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#804CDE
RGBrgb(128, 76, 222)
HSLhsl(261, 69%, 58%)
HSVhsv(261, 66%, 87%)
CMYKcmyk(42.3%, 65.8%, 0%, 12.9%)
CIE-LABlab(45.68, 53.08, -66.84)
CIE-LCHlch(45.68, 85.36, 308.46°)
OKLaboklab(55.48% 0.0889 -0.191)
OKLCHoklch(55.48% 0.211 295)
XYZxyz(24.6678, 15.0314, 70.6947)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CDE #AADE4C
analogous
#4C61DE #804CDE #C94CDE
triadic
#804CDE #DE804C #4CDE80
tetradic
#804CDE #DE4C61 #AADE4C #4CDEC9
square
#804CDE #DE4C61 #AADE4C #4CDEC9
split-complementary
#804CDE #DEC94C #61DE4C
monochromatic
#461B94 #5F25C8 #804CDE #A580E8 #C9B3F1

Accessibility & contrast

On white

5.24
#804CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#804CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CDE
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CDE#FFFFFF#000000##FFFFFF
##804CDE1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#006ADB
Tritanopia (blue-blind)
#676F8F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804cde;
/* rgb */ color: rgb(128, 76, 222);
/* oklch */ color: oklch(55.5% 0.211 295.0);
Tailwind
colors: {
  custom: {
    50: '#ac81e9',
    500: '#804cde',
    950: '#000000',
  },
}
SCSS
$custom: #804cde;
$custom-light: #ac81e9;
$custom-dark: #000000;
JSON
{
  "hex": "#804cde",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 261.37,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55481,
    "c": 0.21065,
    "h": 295
  },
  "luminance": 0.15032
}

Semantic roles & 50–950 ramp

primary
#804CDE
secondary
#CBE0A6
accent
#EC3CAD
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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