#804FA4#804FA4

#804FA4 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.0% C 0.137 H 309.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#804FA4
RGBrgb(128, 79, 164)
HSLhsl(275, 35%, 48%)
HSVhsv(275, 52%, 64%)
CMYKcmyk(22%, 51.8%, 0%, 35.7%)
CIE-LABlab(42.55, 36.84, -38.14)
CIE-LCHlch(42.55, 53.03, 314.01°)
OKLaboklab(52.01% 0.0865 -0.1068)
OKLCHoklch(52.01% 0.137 309)
XYZxyz(18.3976, 12.8618, 36.6281)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FA4 #73A44F
analogous
#554FA4 #804FA4 #A44F9D
triadic
#804FA4 #A4804F #4FA480
tetradic
#804FA4 #A4554F #73A44F #4F9DA4
square
#804FA4 #A4554F #73A44F #4F9DA4
split-complementary
#804FA4 #9DA44F #4FA455
monochromatic
#402751 #603B7B #804FA4 #9E74BC #BB9DD0

Accessibility & contrast

On white

5.88
#804FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804FA4
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FA4#FFFFFF#000000##FFFFFF
##804FA41.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A7
Deuteranopia (green-blind)
#4665A2
Tritanopia (blue-blind)
#7B5D72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804fa4;
/* rgb */ color: rgb(128, 79, 164);
/* oklch */ color: oklch(52.0% 0.137 309.0);
Tailwind
colors: {
  custom: {
    50: '#a782bf',
    500: '#804fa4',
    950: '#000000',
  },
}
SCSS
$custom: #804fa4;
$custom-light: #a782bf;
$custom-dark: #000000;
JSON
{
  "hex": "#804fa4",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 274.588,
    "s": 34.979,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52011,
    "c": 0.1374,
    "h": 309
  },
  "luminance": 0.12861
}

Semantic roles & 50–950 ramp

primary
#804FA4
secondary
#A4BD92
accent
#CB5D8B
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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