#804DE2#804DE2

#804DE2 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.9% C 0.214 H 294.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#804DE2
RGBrgb(128, 77, 226)
HSLhsl(261, 72%, 59%)
HSVhsv(261, 66%, 89%)
CMYKcmyk(43.4%, 65.9%, 0%, 11.4%)
CIE-LABlab(46.16, 53.62, -68.33)
CIE-LCHlch(46.16, 86.86, 308.12°)
OKLaboklab(55.92% 0.0874 -0.1953)
OKLCHoklch(55.92% 0.214 294.1)
XYZxyz(25.2797, 15.3873, 73.5749)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DE2 #AFE24D
analogous
#4D65E2 #804DE2 #CB4DE2
triadic
#804DE2 #E2804D #4DE280
tetradic
#804DE2 #E24D65 #AFE24D #4DE2CB
square
#804DE2 #E24D65 #AFE24D #4DE2CB
split-complementary
#804DE2 #E2CB4D #65E24D
monochromatic
#46199B #5D22D0 #804DE2 #A682EB #CBB6F3

Accessibility & contrast

On white

5.15
#804DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#804DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DE2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DE2#FFFFFF#000000##FFFFFF
##804DE21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#657191
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804de2;
/* rgb */ color: rgb(128, 77, 226);
/* oklch */ color: oklch(55.9% 0.214 294.1);
Tailwind
colors: {
  custom: {
    50: '#ac82ec',
    500: '#804de2',
    950: '#000000',
  },
}
SCSS
$custom: #804de2;
$custom-light: #ac82ec;
$custom-dark: #000000;
JSON
{
  "hex": "#804de2",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 226
  },
  "hsl": {
    "h": 260.537,
    "s": 71.981,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55921,
    "c": 0.214,
    "h": 294.1
  },
  "luminance": 0.15388
}

Semantic roles & 50–950 ramp

primary
#804DE2
secondary
#CFE2A8
accent
#EF39B1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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