#804CB9#804CB9

#804CB9 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.9% C 0.167 H 303.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#804CB9
RGBrgb(128, 76, 185)
HSLhsl(269, 44%, 51%)
HSVhsv(269, 59%, 73%)
CMYKcmyk(30.8%, 58.9%, 0%, 27.5%)
CIE-LABlab(43.15, 43.61, -49.57)
CIE-LCHlch(43.15, 66.03, 311.34°)
OKLaboklab(52.85% 0.0915 -0.1402)
OKLCHoklch(52.85% 0.167 303.1)
XYZxyz(20.2415, 13.2609, 47.3828)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB9 #85B94C
analogous
#4C4EB9 #804CB9 #B64CB9
triadic
#804CB9 #B9804C #4CB980
tetradic
#804CB9 #B94C4E #85B94C #4CB9B6
square
#804CB9 #B94C4E #85B94C #4CB9B6
split-complementary
#804CB9 #B9B64C #4EB94C
monochromatic
#442764 #623890 #804CB9 #9F78CA #BEA4DB

Accessibility & contrast

On white

5.75
#804CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#804CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB9
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB9#FFFFFF#000000##FFFFFF
##804CB91.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BD
Deuteranopia (green-blind)
#3166B6
Tritanopia (blue-blind)
#75627B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804cb9;
/* rgb */ color: rgb(128, 76, 185);
/* oklch */ color: oklch(52.9% 0.167 303.1);
Tailwind
colors: {
  custom: {
    50: '#a880cf',
    500: '#804cb9',
    950: '#000000',
  },
}
SCSS
$custom: #804cb9;
$custom-light: #a880cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb9",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 185
  },
  "hsl": {
    "h": 268.624,
    "s": 43.775,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52851,
    "c": 0.16739,
    "h": 303.1
  },
  "luminance": 0.13261
}

Semantic roles & 50–950 ramp

primary
#804CB9
secondary
#B2C898
accent
#D45497
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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