#804B9D#804B9D

#804B9D is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.0% C 0.136 H 312.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#804B9D
RGBrgb(128, 75, 157)
HSLhsl(279, 35%, 45%)
HSVhsv(279, 52%, 62%)
CMYKcmyk(18.5%, 52.2%, 0%, 38.4%)
CIE-LABlab(41.31, 37.46, -35.94)
CIE-LCHlch(41.31, 51.91, 316.18°)
OKLaboklab(50.96% 0.0915 -0.1003)
OKLCHoklch(50.96% 0.136 312.3)
XYZxyz(17.5029, 12.0561, 33.2968)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804B9D #689D4B
analogous
#574B9D #804B9D #9D4B91
triadic
#804B9D #9D804B #4B9D80
tetradic
#804B9D #9D574B #689D4B #4B919D
square
#804B9D #9D574B #689D4B #4B919D
split-complementary
#804B9D #919D4B #4B9D57
monochromatic
#3C234A #5E3774 #804B9D #9E6CB9 #B996CD

Accessibility & contrast

On white

6.16
#804B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#804B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804B9D
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804B9D#FFFFFF#000000##FFFFFF
##804B9D1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375FA0
Deuteranopia (green-blind)
#47639B
Tritanopia (blue-blind)
#7D586D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #804b9d;
/* rgb */ color: rgb(128, 75, 157);
/* oklch */ color: oklch(51.0% 0.136 312.3);
Tailwind
colors: {
  custom: {
    50: '#a77fba',
    500: '#804b9d',
    950: '#000000',
  },
}
SCSS
$custom: #804b9d;
$custom-light: #a77fba;
$custom-dark: #000000;
JSON
{
  "hex": "#804b9d",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 157
  },
  "hsl": {
    "h": 278.78,
    "s": 35.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.13578,
    "h": 312.3
  },
  "luminance": 0.12056
}

Semantic roles & 50–950 ramp

primary
#804B9D
secondary
#9BB98B
accent
#CB5C84
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #804B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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