#804BAA#804BAA

#804BAA is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.151 H 307.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#804BAA
RGBrgb(128, 75, 170)
HSLhsl(273, 39%, 48%)
HSVhsv(273, 56%, 67%)
CMYKcmyk(24.7%, 55.9%, 0%, 33.3%)
CIE-LABlab(42.04, 40.50, -42.52)
CIE-LCHlch(42.04, 58.73, 313.61°)
OKLaboklab(51.74% 0.0925 -0.1195)
OKLCHoklch(51.74% 0.151 307.7)
XYZxyz(18.6724, 12.5239, 39.4561)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BAA #75AA4B
analogous
#504BAA #804BAA #AA4BA4
triadic
#804BAA #AA804B #4BAA80
tetradic
#804BAA #AA504B #75AA4B #4BA4AA
square
#804BAA #AA504B #75AA4B #4BA4AA
split-complementary
#804BAA #A4AA4B #4BAA50
monochromatic
#402655 #603880 #804BAA #9E72C1 #BB9CD3

Accessibility & contrast

On white

5.99
#804BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#804BAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BAA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BAA#FFFFFF#000000##FFFFFF
##804BAA1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AD
Deuteranopia (green-blind)
#3E64A8
Tritanopia (blue-blind)
#7A5C73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804baa;
/* rgb */ color: rgb(128, 75, 170);
/* oklch */ color: oklch(51.7% 0.151 307.7);
Tailwind
colors: {
  custom: {
    50: '#a77fc4',
    500: '#804baa',
    950: '#000000',
  },
}
SCSS
$custom: #804baa;
$custom-light: #a77fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#804baa",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 170
  },
  "hsl": {
    "h": 273.474,
    "s": 38.776,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5174,
    "c": 0.15113,
    "h": 307.7
  },
  "luminance": 0.12524
}

Semantic roles & 50–950 ramp

primary
#804BAA
secondary
#A6C091
accent
#CF598D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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