#804DCD#804DCD

#804DCD is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.190 H 298.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#804DCD
RGBrgb(128, 77, 205)
HSLhsl(264, 56%, 55%)
HSVhsv(264, 62%, 80%)
CMYKcmyk(37.6%, 62.4%, 0%, 19.6%)
CIE-LABlab(44.67, 48.14, -58.75)
CIE-LCHlch(44.67, 75.95, 309.33°)
OKLaboklab(54.37% 0.0895 -0.1672)
OKLCHoklch(54.37% 0.19 298.2)
XYZxyz(22.5726, 14.3044, 59.3176)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DCD #9ACD4D
analogous
#4D5ACD #804DCD #C04DCD
triadic
#804DCD #CD804D #4DCD80
tetradic
#804DCD #CD4D5A #9ACD4D #4DCDC0
square
#804DCD #CD4D5A #9ACD4D #4DCDC0
split-complementary
#804DCD #CDC04D #5ACD4D
monochromatic
#47237D #6230AC #804DCD #A27DDA #C4ADE8

Accessibility & contrast

On white

5.44
#804DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#804DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DCD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DCD#FFFFFF#000000##FFFFFF
##804DCD1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0D68CA
Tritanopia (blue-blind)
#6E6986
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804dcd;
/* rgb */ color: rgb(128, 77, 205);
/* oklch */ color: oklch(54.4% 0.190 298.2);
Tailwind
colors: {
  custom: {
    50: '#aa81dd',
    500: '#804dcd',
    950: '#000000',
  },
}
SCSS
$custom: #804dcd;
$custom-light: #aa81dd;
$custom-dark: #000000;
JSON
{
  "hex": "#804dcd",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 263.906,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54371,
    "c": 0.1896,
    "h": 298.2
  },
  "luminance": 0.14305
}

Semantic roles & 50–950 ramp

primary
#804DCD
secondary
#C0D6A0
accent
#DF48A3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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