#804FEA#804FEA

#804FEA is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.221 H 292.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#804FEA
RGBrgb(128, 79, 234)
HSLhsl(259, 79%, 61%)
HSVhsv(259, 66%, 92%)
CMYKcmyk(45.3%, 66.2%, 0%, 8.2%)
CIE-LABlab(47.13, 54.70, -71.27)
CIE-LCHlch(47.13, 89.85, 307.51°)
OKLaboklab(56.81% 0.0844 -0.204)
OKLCHoklch(56.81% 0.221 292.5)
XYZxyz(26.5452, 16.1208, 79.5389)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FEA #B9EA4F
analogous
#4F6CEA #804FEA #CE4FEA
triadic
#804FEA #EA804F #4FEA80
tetradic
#804FEA #EA4F6C #B9EA4F #4FEACE
square
#804FEA #EA4F6C #B9EA4F #4FEACE
split-complementary
#804FEA #EACE4F #6CEA4F
monochromatic
#4414AA #591BE1 #804FEA #A786F1 #CFBCF7

Accessibility & contrast

On white

4.97
#804FEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#804FEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FEA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FEA#FFFFFF#000000##FFFFFF
##804FEA1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#006DE7
Tritanopia (blue-blind)
#607596
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #804fea;
/* rgb */ color: rgb(128, 79, 234);
/* oklch */ color: oklch(56.8% 0.221 292.5);
Tailwind
colors: {
  custom: {
    50: '#ad83f2',
    500: '#804fea',
    950: '#000000',
  },
}
SCSS
$custom: #804fea;
$custom-light: #ad83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#804fea",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 234
  },
  "hsl": {
    "h": 258.968,
    "s": 78.68,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56806,
    "c": 0.22075,
    "h": 292.5
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

primary
#804FEA
secondary
#D5E7AD
accent
#DB0B99
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #804FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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