#804FC7#804FC7

#804FC7 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.180 H 299.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#804FC7
RGBrgb(128, 79, 199)
HSLhsl(265, 52%, 55%)
HSVhsv(265, 60%, 78%)
CMYKcmyk(35.7%, 60.3%, 0%, 22%)
CIE-LABlab(44.67, 45.52, -55.28)
CIE-LCHlch(44.67, 71.61, 309.47°)
OKLaboklab(54.24% 0.0875 -0.157)
OKLCHoklch(54.24% 0.18 299.1)
XYZxyz(22.0043, 14.3045, 55.6235)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FC7 #96C74F
analogous
#4F5AC7 #804FC7 #BC4FC7
triadic
#804FC7 #C7804F #4FC780
tetradic
#804FC7 #C74F5A #96C74F #4FC7BC
square
#804FC7 #C74F5A #96C74F #4FC7BC
split-complementary
#804FC7 #C7BC4F #5AC74F
monochromatic
#462676 #6234A4 #804FC7 #A27DD6 #C3ACE5

Accessibility & contrast

On white

5.44
#804FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#804FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FC7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FC7#FFFFFF#000000##FFFFFF
##804FC71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#2269C4
Tritanopia (blue-blind)
#706983
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804fc7;
/* rgb */ color: rgb(128, 79, 199);
/* oklch */ color: oklch(54.2% 0.180 299.1);
Tailwind
colors: {
  custom: {
    50: '#a982d9',
    500: '#804fc7',
    950: '#000000',
  },
}
SCSS
$custom: #804fc7;
$custom-light: #a982d9;
$custom-dark: #000000;
JSON
{
  "hex": "#804fc7",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 264.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54243,
    "c": 0.1797,
    "h": 299.1
  },
  "luminance": 0.14305
}

Semantic roles & 50–950 ramp

primary
#804FC7
secondary
#BED2A0
accent
#DB4DA1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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