#804BB9#804BB9

#804BB9 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.169 H 303.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#804BB9
RGBrgb(128, 75, 185)
HSLhsl(269, 44%, 51%)
HSVhsv(269, 59%, 73%)
CMYKcmyk(30.8%, 59.5%, 0%, 27.5%)
CIE-LABlab(42.95, 44.16, -49.90)
CIE-LCHlch(42.95, 66.63, 311.51°)
OKLaboklab(52.7% 0.0927 -0.1412)
OKLCHoklch(52.7% 0.169 303.3)
XYZxyz(20.1731, 13.1242, 47.3600)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB9 #84B94B
analogous
#4B4DB9 #804BB9 #B74BB9
triadic
#804BB9 #B9804B #4BB980
tetradic
#804BB9 #B94B4D #84B94B #4BB9B7
square
#804BB9 #B94B4D #84B94B #4BB9B7
split-complementary
#804BB9 #B9B74B #4DB94B
monochromatic
#442763 #62388F #804BB9 #9F77CA #BEA3DB

Accessibility & contrast

On white

5.79
#804BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#804BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB9
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB9#FFFFFF#000000##FFFFFF
##804BB91.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1564BD
Deuteranopia (green-blind)
#3065B6
Tritanopia (blue-blind)
#75617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804bb9;
/* rgb */ color: rgb(128, 75, 185);
/* oklch */ color: oklch(52.7% 0.169 303.3);
Tailwind
colors: {
  custom: {
    50: '#a880cf',
    500: '#804bb9',
    950: '#000000',
  },
}
SCSS
$custom: #804bb9;
$custom-light: #a880cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb9",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 268.909,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52702,
    "c": 0.16888,
    "h": 303.3
  },
  "luminance": 0.13124
}

Semantic roles & 50–950 ramp

primary
#804BB9
secondary
#B1C898
accent
#D45496
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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