#804EB9#804EB9

#804EB9 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.2% C 0.164 H 302.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#804EB9
RGBrgb(128, 78, 185)
HSLhsl(268, 43%, 52%)
HSVhsv(268, 58%, 73%)
CMYKcmyk(30.8%, 57.8%, 0%, 27.5%)
CIE-LABlab(43.57, 42.52, -48.91)
CIE-LCHlch(43.57, 64.81, 311.00°)
OKLaboklab(53.15% 0.0889 -0.1383)
OKLCHoklch(53.15% 0.164 302.7)
XYZxyz(20.3814, 13.5408, 47.4294)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB9 #87B94E
analogous
#4E52B9 #804EB9 #B64EB9
triadic
#804EB9 #B9804E #4EB980
tetradic
#804EB9 #B94E52 #87B94E #4EB9B6
square
#804EB9 #B94E52 #87B94E #4EB9B6
split-complementary
#804EB9 #B9B64E #52B94E
monochromatic
#442865 #623991 #804EB9 #9F7ACA #BFA6DC

Accessibility & contrast

On white

5.66
#804EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#804EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB9
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB9#FFFFFF#000000##FFFFFF
##804EB91.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F66BC
Deuteranopia (green-blind)
#3467B7
Tritanopia (blue-blind)
#75637C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804eb9;
/* rgb */ color: rgb(128, 78, 185);
/* oklch */ color: oklch(53.2% 0.164 302.7);
Tailwind
colors: {
  custom: {
    50: '#a882cf',
    500: '#804eb9',
    950: '#000000',
  },
}
SCSS
$custom: #804eb9;
$custom-light: #a882cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb9",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 268.037,
    "s": 43.32,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53154,
    "c": 0.16438,
    "h": 302.7
  },
  "luminance": 0.13541
}

Semantic roles & 50–950 ramp

primary
#804EB9
secondary
#B3C99A
accent
#D35598
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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