#804FD7#804FD7

#804FD7 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.4% C 0.199 H 295.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#804FD7
RGBrgb(128, 79, 215)
HSLhsl(262, 63%, 58%)
HSVhsv(262, 63%, 84%)
CMYKcmyk(40.5%, 63.3%, 0%, 15.7%)
CIE-LABlab(45.75, 49.68, -62.73)
CIE-LCHlch(45.75, 80.02, 308.38°)
OKLaboklab(55.38% 0.0865 -0.1789)
OKLCHoklch(55.38% 0.199 295.8)
XYZxyz(23.9606, 15.0870, 65.9265)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD7 #A6D74F
analogous
#4F62D7 #804FD7 #C44FD7
triadic
#804FD7 #D7804F #4FD780
tetradic
#804FD7 #D74F62 #A6D74F #4FD7C4
square
#804FD7 #D74F62 #A6D74F #4FD7C4
split-complementary
#804FD7 #D7C44F #62D74F
monochromatic
#47208C #602BBE #804FD7 #A481E2 #C8B3EE

Accessibility & contrast

On white

5.23
#804FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#804FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD7#FFFFFF#000000##FFFFFF
##804FD71.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#6A6E8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804fd7;
/* rgb */ color: rgb(128, 79, 215);
/* oklch */ color: oklch(55.4% 0.199 295.8);
Tailwind
colors: {
  custom: {
    50: '#ab83e4',
    500: '#804fd7',
    950: '#000000',
  },
}
SCSS
$custom: #804fd7;
$custom-light: #ab83e4;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd7",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 261.618,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55378,
    "c": 0.19868,
    "h": 295.8
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#804FD7
secondary
#C9DCA6
accent
#E642AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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