#804BB4#804BB4

#804BB4 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.4% C 0.163 H 304.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#804BB4
RGBrgb(128, 75, 180)
HSLhsl(270, 41%, 50%)
HSVhsv(270, 58%, 71%)
CMYKcmyk(28.9%, 58.3%, 0%, 29.4%)
CIE-LABlab(42.64, 42.93, -47.47)
CIE-LCHlch(42.64, 64.00, 312.12°)
OKLaboklab(52.37% 0.0927 -0.134)
OKLCHoklch(52.37% 0.163 304.7)
XYZxyz(19.6546, 12.9167, 44.6289)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB4 #7FB44B
analogous
#4C4BB4 #804BB4 #B44BB3
triadic
#804BB4 #B4804B #4BB480
tetradic
#804BB4 #B44C4B #7FB44B #4BB3B4
square
#804BB4 #B44C4B #7FB44B #4BB3B4
split-complementary
#804BB4 #B3B44B #4BB44C
monochromatic
#43275E #613989 #804BB4 #9E76C6 #BDA1D8

Accessibility & contrast

On white

5.86
#804BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#804BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB4#FFFFFF#000000##FFFFFF
##804BB41.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B7
Deuteranopia (green-blind)
#3565B2
Tritanopia (blue-blind)
#776078
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804bb4;
/* rgb */ color: rgb(128, 75, 180);
/* oklch */ color: oklch(52.4% 0.163 304.7);
Tailwind
colors: {
  custom: {
    50: '#a880cb',
    500: '#804bb4',
    950: '#000000',
  },
}
SCSS
$custom: #804bb4;
$custom-light: #a880cb;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb4",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 270.286,
    "s": 41.176,
    "l": 50
  },
  "oklch": {
    "l": 0.52374,
    "c": 0.16297,
    "h": 304.7
  },
  "luminance": 0.12917
}

Semantic roles & 50–950 ramp

primary
#804BB4
secondary
#ADC596
accent
#D15793
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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