#804EB0#804EB0

#804EB0 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.6% C 0.154 H 305.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#804EB0
RGBrgb(128, 78, 176)
HSLhsl(271, 39%, 50%)
HSVhsv(271, 56%, 69%)
CMYKcmyk(27.3%, 55.7%, 0%, 31%)
CIE-LABlab(43.02, 40.29, -44.50)
CIE-LCHlch(43.02, 60.03, 312.16°)
OKLaboklab(52.58% 0.0887 -0.1253)
OKLCHoklch(52.58% 0.154 305.3)
XYZxyz(19.4613, 13.1727, 42.5832)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB0 #7EB04E
analogous
#4F4EB0 #804EB0 #B04EAF
triadic
#804EB0 #B0804E #4EB080
tetradic
#804EB0 #B04F4E #7EB04E #4EAFB0
square
#804EB0 #B04F4E #7EB04E #4EAFB0
split-complementary
#804EB0 #AFB04E #4EB04F
monochromatic
#42285B #613B86 #804EB0 #9E78C3 #BDA2D6

Accessibility & contrast

On white

5.78
#804EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#804EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB0
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB0#FFFFFF#000000##FFFFFF
##804EB01.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B64B3
Deuteranopia (green-blind)
#3C66AE
Tritanopia (blue-blind)
#786077
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804eb0;
/* rgb */ color: rgb(128, 78, 176);
/* oklch */ color: oklch(52.6% 0.154 305.3);
Tailwind
colors: {
  custom: {
    50: '#a881c8',
    500: '#804eb0',
    950: '#000000',
  },
}
SCSS
$custom: #804eb0;
$custom-light: #a881c8;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb0",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 176
  },
  "hsl": {
    "h": 270.612,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52578,
    "c": 0.15354,
    "h": 305.3
  },
  "luminance": 0.13173
}

Semantic roles & 50–950 ramp

primary
#804EB0
secondary
#ACC397
accent
#CF5993
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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