#804BB5#804BB5

#804BB5 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.164 H 304.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#804BB5
RGBrgb(128, 75, 181)
HSLhsl(270, 42%, 50%)
HSVhsv(270, 59%, 71%)
CMYKcmyk(29.3%, 58.6%, 0%, 29%)
CIE-LABlab(42.70, 43.17, -47.95)
CIE-LCHlch(42.70, 64.52, 312.00°)
OKLaboklab(52.44% 0.0927 -0.1354)
OKLCHoklch(52.44% 0.164 304.4)
XYZxyz(19.7568, 12.9576, 45.1673)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB5 #80B54B
analogous
#4B4BB5 #804BB5 #B54BB5
triadic
#804BB5 #B5804B #4BB580
tetradic
#804BB5 #B54B4B #80B54B #4BB5B5
square
#804BB5 #B54B4B #80B54B #4BB5B5
split-complementary
#804BB5 #B5B54B #4BB54B
monochromatic
#43275F #61398A #804BB5 #9F76C7 #BDA2D9

Accessibility & contrast

On white

5.85
#804BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#804BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB5
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB5#FFFFFF#000000##FFFFFF
##804BB51.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D63B8
Deuteranopia (green-blind)
#3465B3
Tritanopia (blue-blind)
#776079
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804bb5;
/* rgb */ color: rgb(128, 75, 181);
/* oklch */ color: oklch(52.4% 0.164 304.4);
Tailwind
colors: {
  custom: {
    50: '#a880cc',
    500: '#804bb5',
    950: '#000000',
  },
}
SCSS
$custom: #804bb5;
$custom-light: #a880cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb5",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 270,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52439,
    "c": 0.16415,
    "h": 304.4
  },
  "luminance": 0.12958
}

Semantic roles & 50–950 ramp

primary
#804BB5
secondary
#AEC696
accent
#D25694
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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