#804F97#804F97

#804F97 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 51.3% C 0.122 H 314.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#804F97
RGBrgb(128, 79, 151)
HSLhsl(281, 31%, 45%)
HSVhsv(281, 48%, 59%)
CMYKcmyk(15.2%, 47.7%, 0%, 40.8%)
CIE-LABlab(41.87, 33.83, -31.45)
CIE-LCHlch(41.87, 46.19, 317.08°)
OKLaboklab(51.28% 0.0848 -0.0873)
OKLCHoklch(51.28% 0.122 314.2)
XYZxyz(17.2831, 12.4160, 30.7582)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804F97 #66974F
analogous
#5C4F97 #804F97 #974F8A
triadic
#804F97 #97804F #4F9780
tetradic
#804F97 #975C4F #66974F #4F8A97
square
#804F97 #975C4F #66974F #4F8A97
split-complementary
#804F97 #8A974F #4F975C
monochromatic
#3C2547 #5E3A6F #804F97 #9E6FB4 #B998C9

Accessibility & contrast

On white

6.03
#804F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#804F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804F97
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804F97#FFFFFF#000000##FFFFFF
##804F971.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609A
Deuteranopia (green-blind)
#4E6495
Tritanopia (blue-blind)
#7E5A6C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804f97;
/* rgb */ color: rgb(128, 79, 151);
/* oklch */ color: oklch(51.3% 0.122 314.2);
Tailwind
colors: {
  custom: {
    50: '#a682b6',
    500: '#804f97',
    950: '#000000',
  },
}
SCSS
$custom: #804f97;
$custom-light: #a682b6;
$custom-dark: #000000;
JSON
{
  "hex": "#804f97",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 280.833,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5128,
    "c": 0.12176,
    "h": 314.2
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#804F97
secondary
#99B68C
accent
#C76081
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #804F97

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

Preview Lab → · Contrast checker → · Palette generator →

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