#804C97#804C97

#804C97 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 50.8% C 0.127 H 314.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#804C97
RGBrgb(128, 76, 151)
HSLhsl(282, 33%, 45%)
HSVhsv(282, 50%, 59%)
CMYKcmyk(15.2%, 49.7%, 0%, 40.8%)
CIE-LABlab(41.20, 35.54, -32.50)
CIE-LCHlch(41.20, 48.16, 317.55°)
OKLaboklab(50.79% 0.0893 -0.0904)
OKLCHoklch(50.79% 0.127 314.7)
XYZxyz(17.0716, 11.9929, 30.6877)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804C97 #63974C
analogous
#5B4C97 #804C97 #974C89
triadic
#804C97 #97804C #4C9780
tetradic
#804C97 #975B4C #63974C #4C8997
square
#804C97 #975B4C #63974C #4C8997
split-complementary
#804C97 #89974C #4C975B
monochromatic
#3B2346 #5D386E #804C97 #9E6BB5 #B994C9

Accessibility & contrast

On white

6.18
#804C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#804C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804C97
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804C97#FFFFFF#000000##FFFFFF
##804C971.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5E9A
Deuteranopia (green-blind)
#4B6395
Tritanopia (blue-blind)
#7E576A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #804c97;
/* rgb */ color: rgb(128, 76, 151);
/* oklch */ color: oklch(50.8% 0.127 314.7);
Tailwind
colors: {
  custom: {
    50: '#a680b6',
    500: '#804c97',
    950: '#000000',
  },
}
SCSS
$custom: #804c97;
$custom-light: #a680b6;
$custom-dark: #000000;
JSON
{
  "hex": "#804c97",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 281.6,
    "s": 33.04,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50785,
    "c": 0.12703,
    "h": 314.7
  },
  "luminance": 0.11992
}

Semantic roles & 50–950 ramp

primary
#804C97
secondary
#97B689
accent
#C95F7F
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #804C97

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

Preview Lab → · Contrast checker → · Palette generator →

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