#804ED0#804ED0

#804ED0 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.192 H 297.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#804ED0
RGBrgb(128, 78, 208)
HSLhsl(263, 58%, 56%)
HSVhsv(263, 63%, 82%)
CMYKcmyk(38.5%, 62.5%, 0%, 18.4%)
CIE-LABlab(45.07, 48.39, -59.82)
CIE-LCHlch(45.07, 76.94, 308.97°)
OKLaboklab(54.73% 0.0881 -0.1703)
OKLCHoklch(54.73% 0.192 297.4)
XYZxyz(23.0087, 14.5917, 61.2665)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED0 #9ED04E
analogous
#4E5DD0 #804ED0 #C14ED0
triadic
#804ED0 #D0804E #4ED080
tetradic
#804ED0 #D04E5D #9ED04E #4ED0C1
square
#804ED0 #D04E5D #9ED04E #4ED0C1
split-complementary
#804ED0 #D0C14E #5DD04E
monochromatic
#472281 #612FB2 #804ED0 #A37EDD #C5AFEA

Accessibility & contrast

On white

5.36
#804ED0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#804ED0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED0
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED0#FFFFFF#000000##FFFFFF
##804ED01.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD4
Deuteranopia (green-blind)
#0469CD
Tritanopia (blue-blind)
#6D6B88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804ed0;
/* rgb */ color: rgb(128, 78, 208);
/* oklch */ color: oklch(54.7% 0.192 297.4);
Tailwind
colors: {
  custom: {
    50: '#aa82df',
    500: '#804ed0',
    950: '#000000',
  },
}
SCSS
$custom: #804ed0;
$custom-light: #aa82df;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed0",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 208
  },
  "hsl": {
    "h": 263.077,
    "s": 58.036,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54729,
    "c": 0.19177,
    "h": 297.4
  },
  "luminance": 0.14592
}

Semantic roles & 50–950 ramp

primary
#804ED0
secondary
#C3D8A2
accent
#E147A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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