#804AAF#804AAF

#804AAF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.159 H 306.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#804AAF
RGBrgb(128, 74, 175)
HSLhsl(272, 41%, 49%)
HSVhsv(272, 58%, 69%)
CMYKcmyk(26.9%, 57.7%, 0%, 31.4%)
CIE-LABlab(42.13, 42.25, -45.34)
CIE-LCHlch(42.13, 61.97, 312.98°)
OKLaboklab(51.9% 0.094 -0.1278)
OKLCHoklch(51.9% 0.159 306.3)
XYZxyz(19.0871, 12.5821, 41.9722)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AAF #79AF4A
analogous
#4E4AAF #804AAF #AF4AAC
triadic
#804AAF #AF804A #4AAF80
tetradic
#804AAF #AF4E4A #79AF4A #4AACAF
square
#804AAF #AF4E4A #79AF4A #4AACAF
split-complementary
#804AAF #ACAF4A #4AAF4E
monochromatic
#412659 #613884 #804AAF #9E73C4 #BC9ED6

Accessibility & contrast

On white

5.97
#804AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#804AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AAF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AAF#FFFFFF#000000##FFFFFF
##804AAF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#3964AD
Tritanopia (blue-blind)
#785D75
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804aaf;
/* rgb */ color: rgb(128, 74, 175);
/* oklch */ color: oklch(51.9% 0.159 306.3);
Tailwind
colors: {
  custom: {
    50: '#a87fc7',
    500: '#804aaf',
    950: '#000000',
  },
}
SCSS
$custom: #804aaf;
$custom-light: #a87fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#804aaf",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 272.079,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51902,
    "c": 0.1586,
    "h": 306.3
  },
  "luminance": 0.12582
}

Semantic roles & 50–950 ramp

primary
#804AAF
secondary
#A9C292
accent
#D05790
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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