#804DCA#804DCA

#804DCA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.186 H 298.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#804DCA
RGBrgb(128, 77, 202)
HSLhsl(264, 54%, 55%)
HSVhsv(264, 62%, 79%)
CMYKcmyk(36.6%, 61.9%, 0%, 20.8%)
CIE-LABlab(44.46, 47.37, -57.35)
CIE-LCHlch(44.46, 74.38, 309.56°)
OKLaboklab(54.16% 0.0897 -0.163)
OKLCHoklch(54.16% 0.186 298.8)
XYZxyz(22.2140, 14.1610, 57.4287)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DCA #97CA4D
analogous
#4D59CA #804DCA #BF4DCA
triadic
#804DCA #CA804D #4DCA80
tetradic
#804DCA #CA4D59 #97CA4D #4DCABF
square
#804DCA #CA4D59 #97CA4D #4DCABF
split-complementary
#804DCA #CABF4D #59CA4D
monochromatic
#472479 #6232A8 #804DCA #A27CD8 #C3ABE6

Accessibility & contrast

On white

5.48
#804DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#804DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DCA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DCA#FFFFFF#000000##FFFFFF
##804DCA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#1768C7
Tritanopia (blue-blind)
#6F6884
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804dca;
/* rgb */ color: rgb(128, 77, 202);
/* oklch */ color: oklch(54.2% 0.186 298.8);
Tailwind
colors: {
  custom: {
    50: '#aa81db',
    500: '#804dca',
    950: '#000000',
  },
}
SCSS
$custom: #804dca;
$custom-light: #aa81db;
$custom-dark: #000000;
JSON
{
  "hex": "#804dca",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 264.48,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54159,
    "c": 0.18607,
    "h": 298.8
  },
  "luminance": 0.14161
}

Semantic roles & 50–950 ramp

primary
#804DCA
secondary
#BED49F
accent
#DD4AA1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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