#804EB8#804EB8

#804EB8 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.1% C 0.163 H 303.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#804EB8
RGBrgb(128, 78, 184)
HSLhsl(268, 43%, 51%)
HSVhsv(268, 58%, 72%)
CMYKcmyk(30.4%, 57.6%, 0%, 27.8%)
CIE-LABlab(43.51, 42.27, -48.42)
CIE-LCHlch(43.51, 64.28, 311.12°)
OKLaboklab(53.09% 0.0889 -0.1368)
OKLCHoklch(53.09% 0.163 303)
XYZxyz(20.2762, 13.4987, 46.8754)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB8 #86B84E
analogous
#4E51B8 #804EB8 #B54EB8
triadic
#804EB8 #B8804E #4EB880
tetradic
#804EB8 #B84E51 #86B84E #4EB8B5
square
#804EB8 #B84E51 #86B84E #4EB8B5
split-complementary
#804EB8 #B8B54E #51B84E
monochromatic
#442864 #62398F #804EB8 #9F7ACA #BFA5DB

Accessibility & contrast

On white

5.68
#804EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#804EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB8
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB8#FFFFFF#000000##FFFFFF
##804EB81.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BB
Deuteranopia (green-blind)
#3567B6
Tritanopia (blue-blind)
#75637B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804eb8;
/* rgb */ color: rgb(128, 78, 184);
/* oklch */ color: oklch(53.1% 0.163 303.0);
Tailwind
colors: {
  custom: {
    50: '#a882ce',
    500: '#804eb8',
    950: '#000000',
  },
}
SCSS
$custom: #804eb8;
$custom-light: #a882ce;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb8",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 268.302,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53089,
    "c": 0.16317,
    "h": 303
  },
  "luminance": 0.13499
}

Semantic roles & 50–950 ramp

primary
#804EB8
secondary
#B2C89A
accent
#D35597
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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