#804FE2#804FE2

#804FE2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.212 H 293.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#804FE2
RGBrgb(128, 79, 226)
HSLhsl(260, 72%, 60%)
HSVhsv(260, 65%, 89%)
CMYKcmyk(43.4%, 65%, 0%, 11.4%)
CIE-LABlab(46.54, 52.58, -67.71)
CIE-LCHlch(46.54, 85.73, 307.83°)
OKLaboklab(56.19% 0.0854 -0.1935)
OKLCHoklch(56.19% 0.212 293.8)
XYZxyz(25.4218, 15.6714, 73.6222)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FE2 #B1E24F
analogous
#4F68E2 #804FE2 #C94FE2
triadic
#804FE2 #E2804F #4FE280
tetradic
#804FE2 #E24F68 #B1E24F #4FE2C9
square
#804FE2 #E24F68 #B1E24F #4FE2C9
split-complementary
#804FE2 #E2C94F #68E24F
monochromatic
#451A9D #5D22D1 #804FE2 #A684EB #CCB8F3

Accessibility & contrast

On white

5.08
#804FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#804FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FE2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FE2#FFFFFF#000000##FFFFFF
##804FE21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#657292
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #804fe2;
/* rgb */ color: rgb(128, 79, 226);
/* oklch */ color: oklch(56.2% 0.212 293.8);
Tailwind
colors: {
  custom: {
    50: '#ac83ec',
    500: '#804fe2',
    950: '#000000',
  },
}
SCSS
$custom: #804fe2;
$custom-light: #ac83ec;
$custom-dark: #000000;
JSON
{
  "hex": "#804fe2",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 260,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56194,
    "c": 0.21152,
    "h": 293.8
  },
  "luminance": 0.15672
}

Semantic roles & 50–950 ramp

primary
#804FE2
secondary
#D0E3AA
accent
#EE39B2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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