#804FD8#804FD8

#804FD8 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.5% C 0.200 H 295.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#804FD8
RGBrgb(128, 79, 216)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 63%, 85%)
CMYKcmyk(40.7%, 63.4%, 0%, 15.3%)
CIE-LABlab(45.82, 49.94, -63.19)
CIE-LCHlch(45.82, 80.54, 308.32°)
OKLaboklab(55.45% 0.0864 -0.1802)
OKLCHoklch(55.45% 0.2 295.6)
XYZxyz(24.0895, 15.1385, 66.6053)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD8 #A7D84F
analogous
#4F62D8 #804FD8 #C54FD8
triadic
#804FD8 #D8804F #4FD880
tetradic
#804FD8 #D84F62 #A7D84F #4FD8C5
square
#804FD8 #D84F62 #A7D84F #4FD8C5
split-complementary
#804FD8 #D8C54F #62D84F
monochromatic
#471F8D #602ABF #804FD8 #A481E3 #C8B3EE

Accessibility & contrast

On white

5.21
#804FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#804FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD8#FFFFFF#000000##FFFFFF
##804FD81.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#696E8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804fd8;
/* rgb */ color: rgb(128, 79, 216);
/* oklch */ color: oklch(55.5% 0.200 295.6);
Tailwind
colors: {
  custom: {
    50: '#ab83e5',
    500: '#804fd8',
    950: '#000000',
  },
}
SCSS
$custom: #804fd8;
$custom-light: #ab83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd8",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 261.46,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55451,
    "c": 0.19986,
    "h": 295.6
  },
  "luminance": 0.15139
}

Semantic roles & 50–950 ramp

primary
#804FD8
secondary
#C9DDA6
accent
#E741AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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