#804FE6#804FE6

#804FE6 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.216 H 293.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#804FE6
RGBrgb(128, 79, 230)
HSLhsl(259, 75%, 61%)
HSVhsv(259, 66%, 90%)
CMYKcmyk(44.3%, 65.7%, 0%, 9.8%)
CIE-LABlab(46.83, 53.64, -69.50)
CIE-LCHlch(46.83, 87.79, 307.66°)
OKLaboklab(56.5% 0.0849 -0.1988)
OKLCHoklch(56.5% 0.216 293.1)
XYZxyz(25.9771, 15.8936, 76.5466)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FE6 #B5E64F
analogous
#4F69E6 #804FE6 #CB4FE6
triadic
#804FE6 #E6804F #4FE680
tetradic
#804FE6 #E64F69 #B5E64F #4FE6CB
square
#804FE6 #E64F69 #B5E64F #4FE6CB
split-complementary
#804FE6 #E6CB4F #69E64F
monochromatic
#4517A3 #5B1FD9 #804FE6 #A785EE #CDBAF5

Accessibility & contrast

On white

5.03
#804FE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#804FE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FE6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FE6#FFFFFF#000000##FFFFFF
##804FE61.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EB
Deuteranopia (green-blind)
#006CE3
Tritanopia (blue-blind)
#637394
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #804fe6;
/* rgb */ color: rgb(128, 79, 230);
/* oklch */ color: oklch(56.5% 0.216 293.1);
Tailwind
colors: {
  custom: {
    50: '#ac83ef',
    500: '#804fe6',
    950: '#000000',
  },
}
SCSS
$custom: #804fe6;
$custom-light: #ac83ef;
$custom-dark: #000000;
JSON
{
  "hex": "#804fe6",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 230
  },
  "hsl": {
    "h": 259.47,
    "s": 75.124,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56498,
    "c": 0.21615,
    "h": 293.1
  },
  "luminance": 0.15894
}

Semantic roles & 50–950 ramp

primary
#804FE6
secondary
#D2E5AC
accent
#D70E96
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #804FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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