#804DC7#804DC7

#804DC7 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.183 H 299.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#804DC7
RGBrgb(128, 77, 199)
HSLhsl(265, 52%, 54%)
HSVhsv(265, 61%, 78%)
CMYKcmyk(35.7%, 61.3%, 0%, 22%)
CIE-LABlab(44.26, 46.60, -55.94)
CIE-LCHlch(44.26, 72.80, 309.80°)
OKLaboklab(53.95% 0.0898 -0.1589)
OKLCHoklch(53.95% 0.183 299.5)
XYZxyz(21.8622, 14.0203, 55.5761)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC7 #94C74D
analogous
#4D57C7 #804DC7 #BD4DC7
triadic
#804DC7 #C7804D #4DC780
tetradic
#804DC7 #C74D57 #94C74D #4DC7BD
square
#804DC7 #C74D57 #94C74D #4DC7BD
split-complementary
#804DC7 #C7BD4D #57C74D
monochromatic
#462575 #6233A3 #804DC7 #A17CD6 #C2AAE4

Accessibility & contrast

On white

5.52
#804DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#804DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC7#FFFFFF#000000##FFFFFF
##804DC71.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#1E68C4
Tritanopia (blue-blind)
#706783
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804dc7;
/* rgb */ color: rgb(128, 77, 199);
/* oklch */ color: oklch(53.9% 0.183 299.5);
Tailwind
colors: {
  custom: {
    50: '#a981d9',
    500: '#804dc7',
    950: '#000000',
  },
}
SCSS
$custom: #804dc7;
$custom-light: #a981d9;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc7",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 265.082,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53949,
    "c": 0.18254,
    "h": 299.5
  },
  "luminance": 0.1402
}

Semantic roles & 50–950 ramp

primary
#804DC7
secondary
#BCD29E
accent
#DC4CA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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