#804ABA#804ABA

#804ABA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.172 H 303.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#804ABA
RGBrgb(128, 74, 186)
HSLhsl(269, 45%, 51%)
HSVhsv(269, 60%, 73%)
CMYKcmyk(31.2%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.81, 44.94, -50.71)
CIE-LCHlch(42.81, 67.76, 311.55°)
OKLaboklab(52.62% 0.0939 -0.1435)
OKLCHoklch(52.62% 0.172 303.2)
XYZxyz(20.2118, 13.0319, 47.8955)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ABA #84BA4A
analogous
#4A4CBA #804ABA #B84ABA
triadic
#804ABA #BA804A #4ABA80
tetradic
#804ABA #BA4A4C #84BA4A #4ABAB8
square
#804ABA #BA4A4C #84BA4A #4ABAB8
split-complementary
#804ABA #BAB84A #4CBA4A
monochromatic
#442664 #623790 #804ABA #9F76CB #BEA3DC

Accessibility & contrast

On white

5.82
#804ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#804ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ABA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ABA#FFFFFF#000000##FFFFFF
##804ABA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E64BE
Deuteranopia (green-blind)
#2D65B7
Tritanopia (blue-blind)
#75617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804aba;
/* rgb */ color: rgb(128, 74, 186);
/* oklch */ color: oklch(52.6% 0.172 303.2);
Tailwind
colors: {
  custom: {
    50: '#a97fcf',
    500: '#804aba',
    950: '#000000',
  },
}
SCSS
$custom: #804aba;
$custom-light: #a97fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#804aba",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 268.929,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.17153,
    "h": 303.2
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

primary
#804ABA
secondary
#B1C997
accent
#D55396
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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