#804ABE#804ABE

#804ABE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.9% C 0.176 H 302.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#804ABE
RGBrgb(128, 74, 190)
HSLhsl(268, 47%, 52%)
HSVhsv(268, 61%, 75%)
CMYKcmyk(32.6%, 61.1%, 0%, 25.5%)
CIE-LABlab(43.07, 45.94, -52.63)
CIE-LCHlch(43.07, 69.86, 311.12°)
OKLaboklab(52.89% 0.0938 -0.1492)
OKLCHoklch(52.89% 0.176 302.2)
XYZxyz(20.6430, 13.2044, 50.1664)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ABE #88BE4A
analogous
#4A4EBE #804ABE #BA4ABE
triadic
#804ABE #BE804A #4ABE80
tetradic
#804ABE #BE4A4E #88BE4A #4ABEBA
square
#804ABE #BE4A4E #88BE4A #4ABEBA
split-complementary
#804ABE #BEBA4A #4EBE4A
monochromatic
#442568 #623695 #804ABE #A077CE #BFA4DE

Accessibility & contrast

On white

5.77
#804ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#804ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ABE
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ABE#FFFFFF#000000##FFFFFF
##804ABE1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#2865BB
Tritanopia (blue-blind)
#74627D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804abe;
/* rgb */ color: rgb(128, 74, 190);
/* oklch */ color: oklch(52.9% 0.176 302.2);
Tailwind
colors: {
  custom: {
    50: '#a97fd2',
    500: '#804abe',
    950: '#000000',
  },
}
SCSS
$custom: #804abe;
$custom-light: #a97fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#804abe",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 190
  },
  "hsl": {
    "h": 267.931,
    "s": 47.154,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52892,
    "c": 0.17622,
    "h": 302.2
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#804ABE
secondary
#B4CB98
accent
#D75199
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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