#804EA7#804EA7

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

Color values

HEX#804EA7
RGBrgb(128, 78, 167)
HSLhsl(274, 36%, 48%)
HSVhsv(274, 53%, 65%)
CMYKcmyk(23.4%, 53.3%, 0%, 34.5%)
CIE-LABlab(42.50, 38.12, -40.00)
CIE-LCHlch(42.50, 55.26, 313.62°)
OKLaboklab(52.03% 0.0882 -0.1122)
OKLCHoklch(52.03% 0.143 308.2)
XYZxyz(18.6001, 12.8282, 38.0480)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA7 #75A74E
analogous
#534EA7 #804EA7 #A74EA1
triadic
#804EA7 #A7804E #4EA780
tetradic
#804EA7 #A7534E #75A74E #4EA1A7
square
#804EA7 #A7534E #75A74E #4EA1A7
split-complementary
#804EA7 #A1A74E #4EA753
monochromatic
#402754 #603B7D #804EA7 #9E74BE #BB9ED2

Accessibility & contrast

On white

5.89
#804EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#804EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA7#FFFFFF#000000##FFFFFF
##804EA71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462AA
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#7A5E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea7;
/* rgb */ color: rgb(128, 78, 167);
/* oklch */ color: oklch(52.0% 0.143 308.2);
Tailwind
colors: {
  custom: {
    50: '#a781c1',
    500: '#804ea7',
    950: '#000000',
  },
}
SCSS
$custom: #804ea7;
$custom-light: #a781c1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea7",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 273.708,
    "s": 36.327,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52028,
    "c": 0.14268,
    "h": 308.2
  },
  "luminance": 0.12828
}

Semantic roles & 50–950 ramp

primary
#804EA7
secondary
#A6BE92
accent
#CC5B8D
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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