#804DC4#804DC4

#804DC4 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.7% C 0.179 H 300.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#804DC4
RGBrgb(128, 77, 196)
HSLhsl(266, 50%, 54%)
HSVhsv(266, 61%, 77%)
CMYKcmyk(34.7%, 60.7%, 0%, 23.1%)
CIE-LABlab(44.06, 45.84, -54.52)
CIE-LCHlch(44.06, 71.23, 310.06°)
OKLaboklab(53.74% 0.09 -0.1547)
OKLCHoklch(53.74% 0.179 300.2)
XYZxyz(21.5174, 13.8823, 53.7598)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC4 #91C44D
analogous
#4D55C4 #804DC4 #BB4DC4
triadic
#804DC4 #C4804D #4DC480
tetradic
#804DC4 #C44D55 #91C44D #4DC4BB
square
#804DC4 #C44D55 #91C44D #4DC4BB
split-complementary
#804DC4 #C4BB4D #55C44D
monochromatic
#462571 #62359F #804DC4 #A17BD3 #C2A9E2

Accessibility & contrast

On white

5.56
#804DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#804DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC4#FFFFFF#000000##FFFFFF
##804DC41.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#2467C1
Tritanopia (blue-blind)
#716681
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804dc4;
/* rgb */ color: rgb(128, 77, 196);
/* oklch */ color: oklch(53.7% 0.179 300.2);
Tailwind
colors: {
  custom: {
    50: '#a981d7',
    500: '#804dc4',
    950: '#000000',
  },
}
SCSS
$custom: #804dc4;
$custom-light: #a981d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc4",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 265.714,
    "s": 50.211,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53741,
    "c": 0.17899,
    "h": 300.2
  },
  "luminance": 0.13882
}

Semantic roles & 50–950 ramp

primary
#804DC4
secondary
#BAD09D
accent
#DA4E9E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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