#804ABB#804ABB

#804ABB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.173 H 302.9°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#804ABB
RGBrgb(128, 74, 187)
HSLhsl(269, 45%, 51%)
HSVhsv(269, 60%, 73%)
CMYKcmyk(31.6%, 60.4%, 0%, 26.7%)
CIE-LABlab(42.88, 45.19, -51.19)
CIE-LCHlch(42.88, 68.28, 311.44°)
OKLaboklab(52.69% 0.0939 -0.1449)
OKLCHoklch(52.69% 0.173 302.9)
XYZxyz(20.3185, 13.0746, 48.4573)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ABB #85BB4A
analogous
#4A4CBB #804ABB #B94ABB
triadic
#804ABB #BB804A #4ABB80
tetradic
#804ABB #BB4A4C #85BB4A #4ABBB9
square
#804ABB #BB4A4C #85BB4A #4ABBB9
split-complementary
#804ABB #BBB94A #4CBB4A
monochromatic
#442665 #623791 #804ABB #9F76CC #BEA3DC

Accessibility & contrast

On white

5.81
#804ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#804ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ABB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ABB#FFFFFF#000000##FFFFFF
##804ABB1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #804abb;
/* rgb */ color: rgb(128, 74, 187);
/* oklch */ color: oklch(52.7% 0.173 302.9);
Tailwind
colors: {
  custom: {
    50: '#a97fd0',
    500: '#804abb',
    950: '#000000',
  },
}
SCSS
$custom: #804abb;
$custom-light: #a97fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#804abb",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 268.673,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52689,
    "c": 0.1727,
    "h": 302.9
  },
  "luminance": 0.13075
}

Semantic roles & 50–950 ramp

primary
#804ABB
secondary
#B2C997
accent
#D55397
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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