#804DC9#804DC9

#804DC9 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.1% C 0.185 H 299.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#804DC9
RGBrgb(128, 77, 201)
HSLhsl(265, 53%, 55%)
HSVhsv(265, 62%, 79%)
CMYKcmyk(36.3%, 61.7%, 0%, 21.2%)
CIE-LABlab(44.40, 47.11, -56.88)
CIE-LCHlch(44.40, 73.86, 309.64°)
OKLaboklab(54.09% 0.0897 -0.1617)
OKLCHoklch(54.09% 0.185 299)
XYZxyz(22.0960, 14.1138, 56.8071)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC9 #96C94D
analogous
#4D58C9 #804DC9 #BE4DC9
triadic
#804DC9 #C9804D #4DC980
tetradic
#804DC9 #C94D58 #96C94D #4DC9BE
square
#804DC9 #C94D58 #96C94D #4DC9BE
split-complementary
#804DC9 #C9BE4D #58C94D
monochromatic
#462477 #6232A6 #804DC9 #A27CD7 #C3ABE5

Accessibility & contrast

On white

5.49
#804DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#804DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC9
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC9#FFFFFF#000000##FFFFFF
##804DC91.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#1968C6
Tritanopia (blue-blind)
#706884
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804dc9;
/* rgb */ color: rgb(128, 77, 201);
/* oklch */ color: oklch(54.1% 0.185 299.0);
Tailwind
colors: {
  custom: {
    50: '#aa81da',
    500: '#804dc9',
    950: '#000000',
  },
}
SCSS
$custom: #804dc9;
$custom-light: #aa81da;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc9",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 201
  },
  "hsl": {
    "h": 264.677,
    "s": 53.448,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54088,
    "c": 0.18489,
    "h": 299
  },
  "luminance": 0.14114
}

Semantic roles & 50–950 ramp

primary
#804DC9
secondary
#BED39F
accent
#DD4BA1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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