#804ABC#804ABC

#804ABC is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.174 H 302.7°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#804ABC
RGBrgb(128, 74, 188)
HSLhsl(268, 46%, 51%)
HSVhsv(268, 61%, 74%)
CMYKcmyk(31.9%, 60.6%, 0%, 26.3%)
CIE-LABlab(42.94, 45.44, -51.67)
CIE-LCHlch(42.94, 68.81, 311.33°)
OKLaboklab(52.76% 0.0939 -0.1463)
OKLCHoklch(52.76% 0.174 302.7)
XYZxyz(20.4259, 13.1176, 49.0231)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ABC #86BC4A
analogous
#4A4DBC #804ABC #B94ABC
triadic
#804ABC #BC804A #4ABC80
tetradic
#804ABC #BC4A4D #86BC4A #4ABCB9
square
#804ABC #BC4A4D #86BC4A #4ABCB9
split-complementary
#804ABC #BCB94A #4DBC4A
monochromatic
#442666 #623693 #804ABC #9F77CD #BFA3DD

Accessibility & contrast

On white

5.80
#804ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804ABC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ABC#FFFFFF#000000##FFFFFF
##804ABC1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0664C0
Deuteranopia (green-blind)
#2A65B9
Tritanopia (blue-blind)
#74627C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804abc;
/* rgb */ color: rgb(128, 74, 188);
/* oklch */ color: oklch(52.8% 0.174 302.7);
Tailwind
colors: {
  custom: {
    50: '#a97fd1',
    500: '#804abc',
    950: '#000000',
  },
}
SCSS
$custom: #804abc;
$custom-light: #a97fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#804abc",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 268.421,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52756,
    "c": 0.17387,
    "h": 302.7
  },
  "luminance": 0.13118
}

Semantic roles & 50–950 ramp

primary
#804ABC
secondary
#B2CA98
accent
#D65297
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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