#804AB2#804AB2

#804AB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.162 H 305.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#804AB2
RGBrgb(128, 74, 178)
HSLhsl(271, 41%, 49%)
HSVhsv(271, 58%, 70%)
CMYKcmyk(28.1%, 58.4%, 0%, 30.2%)
CIE-LABlab(42.31, 42.98, -46.81)
CIE-LCHlch(42.31, 63.55, 312.56°)
OKLaboklab(52.09% 0.094 -0.1321)
OKLCHoklch(52.09% 0.162 305.4)
XYZxyz(19.3850, 12.7012, 43.5412)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB2 #7CB24A
analogous
#4C4AB2 #804AB2 #B24AB0
triadic
#804AB2 #B2804A #4AB280
tetradic
#804AB2 #B24C4A #7CB24A #4AB0B2
square
#804AB2 #B24C4A #7CB24A #4AB0B2
split-complementary
#804AB2 #B0B24A #4AB24C
monochromatic
#42265C #613887 #804AB2 #9E74C5 #BC9FD7

Accessibility & contrast

On white

5.93
#804AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804AB2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB2#FFFFFF#000000##FFFFFF
##804AB21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3664B0
Tritanopia (blue-blind)
#785E77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ab2;
/* rgb */ color: rgb(128, 74, 178);
/* oklch */ color: oklch(52.1% 0.162 305.4);
Tailwind
colors: {
  custom: {
    50: '#a87fca',
    500: '#804ab2',
    950: '#000000',
  },
}
SCSS
$custom: #804ab2;
$custom-light: #a87fca;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab2",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 271.154,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52094,
    "c": 0.16213,
    "h": 305.4
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#804AB2
secondary
#ABC494
accent
#D15792
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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