#804DC6#804DC6

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

Color values

HEX#804DC6
RGBrgb(128, 77, 198)
HSLhsl(265, 51%, 54%)
HSVhsv(265, 61%, 78%)
CMYKcmyk(35.4%, 61.1%, 0%, 22.4%)
CIE-LABlab(44.20, 46.35, -55.46)
CIE-LCHlch(44.20, 72.28, 309.88°)
OKLaboklab(53.88% 0.0899 -0.1575)
OKLCHoklch(53.88% 0.181 299.7)
XYZxyz(21.7465, 13.9740, 54.9667)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC6 #93C64D
analogous
#4D57C6 #804DC6 #BC4DC6
triadic
#804DC6 #C6804D #4DC680
tetradic
#804DC6 #C64D57 #93C64D #4DC6BC
square
#804DC6 #C64D57 #93C64D #4DC6BC
split-complementary
#804DC6 #C6BC4D #57C64D
monochromatic
#462574 #6234A2 #804DC6 #A17BD5 #C2AAE4

Accessibility & contrast

On white

5.53
#804DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#804DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC6#FFFFFF#000000##FFFFFF
##804DC61.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#2068C3
Tritanopia (blue-blind)
#716782
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804dc6;
/* rgb */ color: rgb(128, 77, 198);
/* oklch */ color: oklch(53.9% 0.181 299.7);
Tailwind
colors: {
  custom: {
    50: '#a981d8',
    500: '#804dc6',
    950: '#000000',
  },
}
SCSS
$custom: #804dc6;
$custom-light: #a981d8;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc6",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 265.289,
    "s": 51.489,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53879,
    "c": 0.18135,
    "h": 299.7
  },
  "luminance": 0.13974
}

Semantic roles & 50–950 ramp

primary
#804DC6
secondary
#BBD19E
accent
#DB4D9F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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