#804FC5#804FC5

#804FC5 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.177 H 299.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#804FC5
RGBrgb(128, 79, 197)
HSLhsl(265, 50%, 54%)
HSVhsv(265, 60%, 77%)
CMYKcmyk(35%, 59.9%, 0%, 22.7%)
CIE-LABlab(44.54, 45.01, -54.34)
CIE-LCHlch(44.54, 70.56, 309.64°)
OKLaboklab(54.11% 0.0875 -0.1542)
OKLCHoklch(54.11% 0.177 299.6)
XYZxyz(21.7737, 14.2122, 54.4086)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FC5 #94C54F
analogous
#4F59C5 #804FC5 #BB4FC5
triadic
#804FC5 #C5804F #4FC580
tetradic
#804FC5 #C54F59 #94C54F #4FC5BB
square
#804FC5 #C54F59 #94C54F #4FC5BB
split-complementary
#804FC5 #C5BB4F #59C54F
monochromatic
#462674 #6235A2 #804FC5 #A17DD4 #C2ABE3

Accessibility & contrast

On white

5.47
#804FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#804FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FC5
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FC5#FFFFFF#000000##FFFFFF
##804FC51.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0369C9
Deuteranopia (green-blind)
#2668C2
Tritanopia (blue-blind)
#716882
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804fc5;
/* rgb */ color: rgb(128, 79, 197);
/* oklch */ color: oklch(54.1% 0.177 299.6);
Tailwind
colors: {
  custom: {
    50: '#a982d7',
    500: '#804fc5',
    950: '#000000',
  },
}
SCSS
$custom: #804fc5;
$custom-light: #a982d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804fc5",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 264.915,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54106,
    "c": 0.17731,
    "h": 299.6
  },
  "luminance": 0.14212
}

Semantic roles & 50–950 ramp

primary
#804FC5
secondary
#BCD19F
accent
#DA4EA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #804FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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