#804FA5#804FA5

#804FA5 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.139 H 308.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#804FA5
RGBrgb(128, 79, 165)
HSLhsl(274, 35%, 48%)
HSVhsv(274, 52%, 65%)
CMYKcmyk(22.4%, 52.1%, 0%, 35.3%)
CIE-LABlab(42.61, 37.08, -38.65)
CIE-LCHlch(42.61, 53.56, 313.81°)
OKLaboklab(52.07% 0.0866 -0.1082)
OKLCHoklch(52.07% 0.139 308.7)
XYZxyz(18.4883, 12.8980, 37.1056)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FA5 #74A54F
analogous
#554FA5 #804FA5 #A54F9F
triadic
#804FA5 #A5804F #4FA580
tetradic
#804FA5 #A5554F #74A54F #4F9FA5
square
#804FA5 #A5554F #74A54F #4F9FA5
split-complementary
#804FA5 #9FA54F #4FA555
monochromatic
#402752 #603B7C #804FA5 #9E75BD #BB9ED1

Accessibility & contrast

On white

5.87
#804FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#804FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FA5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FA5#FFFFFF#000000##FFFFFF
##804FA51.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763A8
Deuteranopia (green-blind)
#4665A3
Tritanopia (blue-blind)
#7B5E72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804fa5;
/* rgb */ color: rgb(128, 79, 165);
/* oklch */ color: oklch(52.1% 0.139 308.7);
Tailwind
colors: {
  custom: {
    50: '#a782c0',
    500: '#804fa5',
    950: '#000000',
  },
}
SCSS
$custom: #804fa5;
$custom-light: #a782c0;
$custom-dark: #000000;
JSON
{
  "hex": "#804fa5",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 274.186,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5207,
    "c": 0.1386,
    "h": 308.7
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#804FA5
secondary
#A5BD92
accent
#CB5D8C
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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