#804BA4#804BA4

#804BA4 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.4% C 0.144 H 309.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#804BA4
RGBrgb(128, 75, 164)
HSLhsl(276, 37%, 47%)
HSVhsv(276, 54%, 64%)
CMYKcmyk(22%, 54.3%, 0%, 35.7%)
CIE-LABlab(41.69, 39.08, -39.51)
CIE-LCHlch(41.69, 55.57, 314.69°)
OKLaboklab(51.37% 0.0921 -0.1107)
OKLCHoklch(51.37% 0.144 309.7)
XYZxyz(18.1177, 12.3020, 36.5348)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BA4 #6FA44B
analogous
#544BA4 #804BA4 #A44B9C
triadic
#804BA4 #A4804B #4BA480
tetradic
#804BA4 #A4544B #6FA44B #4B9CA4
square
#804BA4 #A4544B #6FA44B #4B9CA4
split-complementary
#804BA4 #9CA44B #4BA454
monochromatic
#3E2550 #5F387A #804BA4 #9E6FBD #BA99D0

Accessibility & contrast

On white

6.07
#804BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#804BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BA4
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BA4#FFFFFF#000000##FFFFFF
##804BA41.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3160A7
Deuteranopia (green-blind)
#4263A2
Tritanopia (blue-blind)
#7B5A70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804ba4;
/* rgb */ color: rgb(128, 75, 164);
/* oklch */ color: oklch(51.4% 0.144 309.7);
Tailwind
colors: {
  custom: {
    50: '#a77fbf',
    500: '#804ba4',
    950: '#000000',
  },
}
SCSS
$custom: #804ba4;
$custom-light: #a77fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#804ba4",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 164
  },
  "hsl": {
    "h": 275.73,
    "s": 37.238,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.14403,
    "h": 309.7
  },
  "luminance": 0.12302
}

Semantic roles & 50–950 ramp

primary
#804BA4
secondary
#A1BD8E
accent
#CD5B89
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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