#804DC5#804DC5

#804DC5 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.180 H 299.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#804DC5
RGBrgb(128, 77, 197)
HSLhsl(266, 51%, 54%)
HSVhsv(266, 61%, 77%)
CMYKcmyk(35%, 60.9%, 0%, 22.7%)
CIE-LABlab(44.13, 46.09, -54.99)
CIE-LCHlch(44.13, 71.75, 309.97°)
OKLaboklab(53.81% 0.0899 -0.1561)
OKLCHoklch(53.81% 0.18 299.9)
XYZxyz(21.6316, 13.9280, 54.3612)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC5 #92C54D
analogous
#4D56C5 #804DC5 #BC4DC5
triadic
#804DC5 #C5804D #4DC580
tetradic
#804DC5 #C54D56 #92C54D #4DC5BC
square
#804DC5 #C54D56 #92C54D #4DC5BC
split-complementary
#804DC5 #C5BC4D #56C54D
monochromatic
#462572 #6234A0 #804DC5 #A17BD4 #C2A9E3

Accessibility & contrast

On white

5.55
#804DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804DC5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC5#FFFFFF#000000##FFFFFF
##804DC51.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#2267C2
Tritanopia (blue-blind)
#716782
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804dc5;
/* rgb */ color: rgb(128, 77, 197);
/* oklch */ color: oklch(53.8% 0.180 299.9);
Tailwind
colors: {
  custom: {
    50: '#a981d7',
    500: '#804dc5',
    950: '#000000',
  },
}
SCSS
$custom: #804dc5;
$custom-light: #a981d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc5",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 265.5,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5381,
    "c": 0.18017,
    "h": 299.9
  },
  "luminance": 0.13928
}

Semantic roles & 50–950 ramp

primary
#804DC5
secondary
#BBD19D
accent
#DA4D9E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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