#804D9B#804D9B

#804D9B is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.130 H 312.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#804D9B
RGBrgb(128, 77, 155)
HSLhsl(279, 34%, 45%)
HSVhsv(279, 50%, 61%)
CMYKcmyk(17.4%, 50.3%, 0%, 39.2%)
CIE-LABlab(41.63, 35.88, -34.23)
CIE-LCHlch(41.63, 49.58, 316.35°)
OKLaboklab(51.17% 0.0884 -0.0954)
OKLCHoklch(51.17% 0.13 312.8)
XYZxyz(17.4714, 12.2639, 32.4508)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804D9B #689B4D
analogous
#594D9B #804D9B #9B4D8F
triadic
#804D9B #9B804D #4D9B80
tetradic
#804D9B #9B594D #689B4D #4D8F9B
square
#804D9B #9B594D #689B4D #4D8F9B
split-complementary
#804D9B #8F9B4D #4D9B59
monochromatic
#3C2449 #5E3972 #804D9B #9E6EB7 #B997CB

Accessibility & contrast

On white

6.08
#804D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#804D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804D9B
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804D9B#FFFFFF#000000##FFFFFF
##804D9B1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5F9E
Deuteranopia (green-blind)
#4A6399
Tritanopia (blue-blind)
#7D596D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804d9b;
/* rgb */ color: rgb(128, 77, 155);
/* oklch */ color: oklch(51.2% 0.130 312.8);
Tailwind
colors: {
  custom: {
    50: '#a780b9',
    500: '#804d9b',
    950: '#000000',
  },
}
SCSS
$custom: #804d9b;
$custom-light: #a780b9;
$custom-dark: #000000;
JSON
{
  "hex": "#804d9b",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 155
  },
  "hsl": {
    "h": 279.231,
    "s": 33.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51171,
    "c": 0.13,
    "h": 312.8
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#804D9B
secondary
#9BB88C
accent
#CA5E83
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #804D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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