#804EA6#804EA6

#804EA6 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.141 H 308.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#804EA6
RGBrgb(128, 78, 166)
HSLhsl(274, 36%, 48%)
HSVhsv(274, 53%, 65%)
CMYKcmyk(22.9%, 53%, 0%, 34.9%)
CIE-LABlab(42.45, 37.88, -39.50)
CIE-LCHlch(42.45, 54.73, 313.80°)
OKLaboklab(51.97% 0.0881 -0.1107)
OKLCHoklch(51.97% 0.141 308.5)
XYZxyz(18.5081, 12.7914, 37.5630)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA6 #74A64E
analogous
#544EA6 #804EA6 #A64EA0
triadic
#804EA6 #A6804E #4EA680
tetradic
#804EA6 #A6544E #74A64E #4EA0A6
square
#804EA6 #A6544E #74A64E #4EA0A6
split-complementary
#804EA6 #A0A64E #4EA654
monochromatic
#402753 #603A7C #804EA6 #9E74BE #BB9DD1

Accessibility & contrast

On white

5.90
#804EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#804EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA6#FFFFFF#000000##FFFFFF
##804EA61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#7B5D72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea6;
/* rgb */ color: rgb(128, 78, 166);
/* oklch */ color: oklch(52.0% 0.141 308.5);
Tailwind
colors: {
  custom: {
    50: '#a781c1',
    500: '#804ea6',
    950: '#000000',
  },
}
SCSS
$custom: #804ea6;
$custom-light: #a781c1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea6",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 274.091,
    "s": 36.066,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.14148,
    "h": 308.5
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#804EA6
secondary
#A5BE92
accent
#CC5C8C
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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