#804CA7#804CA7

#804CA7 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.146 H 308.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#804CA7
RGBrgb(128, 76, 167)
HSLhsl(274, 37%, 48%)
HSVhsv(274, 54%, 65%)
CMYKcmyk(23.4%, 54.5%, 0%, 34.5%)
CIE-LABlab(42.07, 39.24, -40.68)
CIE-LCHlch(42.07, 56.52, 313.96°)
OKLaboklab(51.71% 0.0909 -0.1142)
OKLCHoklch(51.71% 0.146 308.5)
XYZxyz(18.4602, 12.5484, 38.0013)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA7 #73A74C
analogous
#524CA7 #804CA7 #A74CA0
triadic
#804CA7 #A7804C #4CA780
tetradic
#804CA7 #A7524C #73A74C #4CA0A7
square
#804CA7 #A7524C #73A74C #4CA0A7
split-complementary
#804CA7 #A0A74C #4CA752
monochromatic
#402653 #60397D #804CA7 #9E72BF #BB9CD2

Accessibility & contrast

On white

5.98
#804CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#804CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA7#FFFFFF#000000##FFFFFF
##804CA71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AA
Deuteranopia (green-blind)
#4164A5
Tritanopia (blue-blind)
#7B5C72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ca7;
/* rgb */ color: rgb(128, 76, 167);
/* oklch */ color: oklch(51.7% 0.146 308.5);
Tailwind
colors: {
  custom: {
    50: '#a780c1',
    500: '#804ca7',
    950: '#000000',
  },
}
SCSS
$custom: #804ca7;
$custom-light: #a780c1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca7",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 274.286,
    "s": 37.449,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51711,
    "c": 0.14596,
    "h": 308.5
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#804CA7
secondary
#A4BE90
accent
#CD5A8C
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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