#804DA9#804DA9

#804DA9 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.147 H 307.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#804DA9
RGBrgb(128, 77, 169)
HSLhsl(273, 37%, 48%)
HSVhsv(273, 54%, 66%)
CMYKcmyk(24.3%, 54.4%, 0%, 33.7%)
CIE-LABlab(42.40, 39.16, -41.35)
CIE-LCHlch(42.40, 56.95, 313.44°)
OKLaboklab(51.99% 0.0897 -0.1161)
OKLCHoklch(51.99% 0.147 307.7)
XYZxyz(18.7160, 12.7617, 39.0057)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DA9 #76A94D
analogous
#524DA9 #804DA9 #A94DA4
triadic
#804DA9 #A9804D #4DA980
tetradic
#804DA9 #A9524D #76A94D #4DA4A9
square
#804DA9 #A9524D #76A94D #4DA4A9
split-complementary
#804DA9 #A4A94D #4DA952
monochromatic
#402755 #603A7F #804DA9 #9E74C0 #BB9ED3

Accessibility & contrast

On white

5.91
#804DA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#804DA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DA9
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DA9#FFFFFF#000000##FFFFFF
##804DA91.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AC
Deuteranopia (green-blind)
#4165A7
Tritanopia (blue-blind)
#7A5E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804da9;
/* rgb */ color: rgb(128, 77, 169);
/* oklch */ color: oklch(52.0% 0.147 307.7);
Tailwind
colors: {
  custom: {
    50: '#a781c3',
    500: '#804da9',
    950: '#000000',
  },
}
SCSS
$custom: #804da9;
$custom-light: #a781c3;
$custom-dark: #000000;
JSON
{
  "hex": "#804da9",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 169
  },
  "hsl": {
    "h": 273.261,
    "s": 37.398,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5199,
    "c": 0.14671,
    "h": 307.7
  },
  "luminance": 0.12762
}

Semantic roles & 50–950 ramp

primary
#804DA9
secondary
#A6BF92
accent
#CD5A8E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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