#804AFE#804AFE

#804AFE is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.249 H 290.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#804AFE
RGBrgb(128, 74, 254)
HSLhsl(258, 99%, 64%)
HSVhsv(258, 71%, 100%)
CMYKcmyk(49.6%, 70.9%, 0%, 0.4%)
CIE-LABlab(47.80, 62.49, -81.38)
CIE-LCHlch(47.80, 102.61, 307.52°)
OKLaboklab(57.77% 0.0854 -0.2337)
OKLCHoklch(57.77% 0.249 290.1)
XYZxyz(29.2351, 16.6413, 95.4184)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AFE #C8FE4A
analogous
#4A6EFE #804AFE #DA4AFE
triadic
#804AFE #FE804A #4AFE80
tetradic
#804AFE #FE4A6E #C8FE4A #4AFEDA
square
#804AFE #FE4A6E #C8FE4A #4AFEDA
split-complementary
#804AFE #FEDA4A #6EFE4A
monochromatic
#3E01CC #550DFE #804AFE #AB87FE #D5C4FF

Accessibility & contrast

On white

4.85
#804AFE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#804AFE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AFE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AFE#FFFFFF#000000##FFFFFF
##804AFE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#006DFB
Tritanopia (blue-blind)
#547AA0
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #804afe;
/* rgb */ color: rgb(128, 74, 254);
/* oklch */ color: oklch(57.8% 0.249 290.1);
Tailwind
colors: {
  custom: {
    50: '#af81ff',
    500: '#804afe',
    950: '#000000',
  },
}
SCSS
$custom: #804afe;
$custom-light: #af81ff;
$custom-dark: #000000;
JSON
{
  "hex": "#804afe",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 254
  },
  "hsl": {
    "h": 258,
    "s": 98.901,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57772,
    "c": 0.24879,
    "h": 290.1
  },
  "luminance": 0.16643
}

Semantic roles & 50–950 ramp

primary
#804AFE
secondary
#DEF1B3
accent
#E600A1
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #804AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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