#804BAE#804BAE

#804BAE is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.156 H 306.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#804BAE
RGBrgb(128, 75, 174)
HSLhsl(272, 40%, 49%)
HSVhsv(272, 57%, 68%)
CMYKcmyk(26.4%, 56.9%, 0%, 31.8%)
CIE-LABlab(42.27, 41.47, -44.51)
CIE-LCHlch(42.27, 60.83, 312.97°)
OKLaboklab(51.99% 0.0926 -0.1254)
OKLCHoklch(51.99% 0.156 306.5)
XYZxyz(19.0565, 12.6775, 41.4793)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BAE #79AE4B
analogous
#4F4BAE #804BAE #AE4BAB
triadic
#804BAE #AE804B #4BAE80
tetradic
#804BAE #AE4F4B #79AE4B #4BABAE
square
#804BAE #AE4F4B #79AE4B #4BABAE
split-complementary
#804BAE #ABAE4B #4BAE4F
monochromatic
#412658 #613983 #804BAE #9E73C3 #BC9ED5

Accessibility & contrast

On white

5.94
#804BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#804BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BAE
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BAE#FFFFFF#000000##FFFFFF
##804BAE1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B1
Deuteranopia (green-blind)
#3B64AC
Tritanopia (blue-blind)
#795E75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804bae;
/* rgb */ color: rgb(128, 75, 174);
/* oklch */ color: oklch(52.0% 0.156 306.5);
Tailwind
colors: {
  custom: {
    50: '#a87fc7',
    500: '#804bae',
    950: '#000000',
  },
}
SCSS
$custom: #804bae;
$custom-light: #a87fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#804bae",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 174
  },
  "hsl": {
    "h": 272.121,
    "s": 39.759,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5199,
    "c": 0.15587,
    "h": 306.5
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#804BAE
secondary
#A9C293
accent
#D05890
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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