#804ED2#804ED2

#804ED2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.194 H 297.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#804ED2
RGBrgb(128, 78, 210)
HSLhsl(263, 59%, 56%)
HSVhsv(263, 63%, 82%)
CMYKcmyk(39%, 62.9%, 0%, 17.6%)
CIE-LABlab(45.21, 48.90, -60.75)
CIE-LCHlch(45.21, 77.99, 308.84°)
OKLaboklab(54.87% 0.088 -0.173)
OKLCHoklch(54.87% 0.194 297)
XYZxyz(23.2563, 14.6907, 62.5706)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED2 #A0D24E
analogous
#4E5ED2 #804ED2 #C24ED2
triadic
#804ED2 #D2804E #4ED280
tetradic
#804ED2 #D24E5E #A0D24E #4ED2C2
square
#804ED2 #D24E5E #A0D24E #4ED2C2
split-complementary
#804ED2 #D2C24E #5ED24E
monochromatic
#472284 #612EB5 #804ED2 #A37FDE #C6B0EB

Accessibility & contrast

On white

5.33
#804ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#804ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED2#FFFFFF#000000##FFFFFF
##804ED21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#6C6C89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804ed2;
/* rgb */ color: rgb(128, 78, 210);
/* oklch */ color: oklch(54.9% 0.194 297.0);
Tailwind
colors: {
  custom: {
    50: '#aa82e1',
    500: '#804ed2',
    950: '#000000',
  },
}
SCSS
$custom: #804ed2;
$custom-light: #aa82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed2",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 262.727,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54872,
    "c": 0.19414,
    "h": 297
  },
  "luminance": 0.14691
}

Semantic roles & 50–950 ramp

primary
#804ED2
secondary
#C4D9A3
accent
#E345A7
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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