#804A97#804A97

#804A97 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.5% C 0.131 H 315.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#804A97
RGBrgb(128, 74, 151)
HSLhsl(282, 34%, 44%)
HSVhsv(282, 51%, 59%)
CMYKcmyk(15.2%, 51%, 0%, 40.8%)
CIE-LABlab(40.77, 36.66, -33.18)
CIE-LCHlch(40.77, 49.45, 317.85°)
OKLaboklab(50.46% 0.0922 -0.0923)
OKLCHoklch(50.46% 0.131 315)
XYZxyz(16.9359, 11.7216, 30.6425)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804A97 #61974A
analogous
#5A4A97 #804A97 #974A88
triadic
#804A97 #97804A #4A9780
tetradic
#804A97 #975A4A #61974A #4A8897
square
#804A97 #975A4A #61974A #4A8897
split-complementary
#804A97 #88974A #4A975A
monochromatic
#3A2245 #5D366E #804A97 #9F69B5 #B992CA

Accessibility & contrast

On white

6.28
#804A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#804A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804A97
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804A97#FFFFFF#000000##FFFFFF
##804A971.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9A
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#7F5669
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #804a97;
/* rgb */ color: rgb(128, 74, 151);
/* oklch */ color: oklch(50.5% 0.131 315.0);
Tailwind
colors: {
  custom: {
    50: '#a77eb6',
    500: '#804a97',
    950: '#000000',
  },
}
SCSS
$custom: #804a97;
$custom-light: #a77eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#804a97",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 282.078,
    "s": 34.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50463,
    "c": 0.1305,
    "h": 315
  },
  "luminance": 0.11721
}

Semantic roles & 50–950 ramp

primary
#804A97
secondary
#95B687
accent
#CA5D7E
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #804A97

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

Preview Lab → · Contrast checker → · Palette generator →

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