#804AB4#804AB4

#804AB4 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.164 H 304.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#804AB4
RGBrgb(128, 74, 180)
HSLhsl(271, 42%, 50%)
HSVhsv(271, 59%, 71%)
CMYKcmyk(28.9%, 58.9%, 0%, 29.4%)
CIE-LABlab(42.43, 43.47, -47.79)
CIE-LCHlch(42.43, 64.60, 312.29°)
OKLaboklab(52.22% 0.094 -0.135)
OKLCHoklch(52.22% 0.164 304.9)
XYZxyz(19.5873, 12.7821, 44.6065)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB4 #7EB44A
analogous
#4B4AB4 #804AB4 #B44AB3
triadic
#804AB4 #B4804A #4AB480
tetradic
#804AB4 #B44B4A #7EB44A #4AB3B4
square
#804AB4 #B44B4A #7EB44A #4AB3B4
split-complementary
#804AB4 #B3B44A #4AB44B
monochromatic
#42265D #613889 #804AB4 #9E75C6 #BDA0D8

Accessibility & contrast

On white

5.90
#804AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#804AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AB4
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB4#FFFFFF#000000##FFFFFF
##804AB41.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B7
Deuteranopia (green-blind)
#3464B2
Tritanopia (blue-blind)
#775F78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ab4;
/* rgb */ color: rgb(128, 74, 180);
/* oklch */ color: oklch(52.2% 0.164 304.9);
Tailwind
colors: {
  custom: {
    50: '#a87fcb',
    500: '#804ab4',
    950: '#000000',
  },
}
SCSS
$custom: #804ab4;
$custom-light: #a87fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab4",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 270.566,
    "s": 41.732,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52224,
    "c": 0.16449,
    "h": 304.9
  },
  "luminance": 0.12782
}

Semantic roles & 50–950 ramp

primary
#804AB4
secondary
#ACC595
accent
#D25693
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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