#804AB0#804AB0

#804AB0 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.160 H 306.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#804AB0
RGBrgb(128, 74, 176)
HSLhsl(272, 41%, 49%)
HSVhsv(272, 58%, 69%)
CMYKcmyk(27.3%, 58%, 0%, 31%)
CIE-LABlab(42.19, 42.50, -45.83)
CIE-LCHlch(42.19, 62.50, 312.84°)
OKLaboklab(51.97% 0.094 -0.1292)
OKLCHoklch(51.97% 0.16 306)
XYZxyz(19.1857, 12.6215, 42.4913)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB0 #7AB04A
analogous
#4D4AB0 #804AB0 #B04AAD
triadic
#804AB0 #B0804A #4AB080
tetradic
#804AB0 #B04D4A #7AB04A #4AADB0
square
#804AB0 #B04D4A #7AB04A #4AADB0
split-complementary
#804AB0 #ADB04A #4AB04D
monochromatic
#41265A #613885 #804AB0 #9E73C4 #BC9ED6

Accessibility & contrast

On white

5.96
#804AB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804AB0
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB0#FFFFFF#000000##FFFFFF
##804AB01.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B3
Deuteranopia (green-blind)
#3864AE
Tritanopia (blue-blind)
#785E76
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ab0;
/* rgb */ color: rgb(128, 74, 176);
/* oklch */ color: oklch(52.0% 0.160 306.0);
Tailwind
colors: {
  custom: {
    50: '#a87fc8',
    500: '#804ab0',
    950: '#000000',
  },
}
SCSS
$custom: #804ab0;
$custom-light: #a87fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab0",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 176
  },
  "hsl": {
    "h": 271.765,
    "s": 40.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51965,
    "c": 0.15978,
    "h": 306
  },
  "luminance": 0.12621
}

Semantic roles & 50–950 ramp

primary
#804AB0
secondary
#A9C393
accent
#D15790
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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