#804AA8#804AA8

#804AA8 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.5% C 0.150 H 308.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#804AA8
RGBrgb(128, 74, 168)
HSLhsl(274, 39%, 47%)
HSVhsv(274, 56%, 66%)
CMYKcmyk(23.8%, 56%, 0%, 34.1%)
CIE-LABlab(41.71, 40.58, -41.86)
CIE-LCHlch(41.71, 58.30, 314.11°)
OKLaboklab(51.46% 0.0937 -0.1176)
OKLCHoklch(51.46% 0.15 308.6)
XYZxyz(18.4174, 12.3142, 38.4448)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AA8 #72A84A
analogous
#514AA8 #804AA8 #A84AA1
triadic
#804AA8 #A8804A #4AA880
tetradic
#804AA8 #A8514A #72A84A #4AA1A8
square
#804AA8 #A8514A #72A84A #4AA1A8
split-complementary
#804AA8 #A1A84A #4AA851
monochromatic
#3F2553 #60377E #804AA8 #9E6FC0 #BA9AD2

Accessibility & contrast

On white

6.06
#804AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804AA8
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AA8#FFFFFF#000000##FFFFFF
##804AA81.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AB
Deuteranopia (green-blind)
#3F63A6
Tritanopia (blue-blind)
#7A5B72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804aa8;
/* rgb */ color: rgb(128, 74, 168);
/* oklch */ color: oklch(51.5% 0.150 308.6);
Tailwind
colors: {
  custom: {
    50: '#a77fc2',
    500: '#804aa8',
    950: '#000000',
  },
}
SCSS
$custom: #804aa8;
$custom-light: #a77fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#804aa8",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 274.468,
    "s": 38.843,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51463,
    "c": 0.15036,
    "h": 308.6
  },
  "luminance": 0.12314
}

Semantic roles & 50–950 ramp

primary
#804AA8
secondary
#A3BF8F
accent
#CF598B
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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