#804EBE#804EBE

#804EBE is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.5% C 0.170 H 301.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#804EBE
RGBrgb(128, 78, 190)
HSLhsl(267, 46%, 53%)
HSVhsv(267, 59%, 75%)
CMYKcmyk(32.6%, 58.9%, 0%, 25.5%)
CIE-LABlab(43.88, 43.78, -51.32)
CIE-LCHlch(43.88, 67.46, 310.46°)
OKLaboklab(53.48% 0.0889 -0.1453)
OKLCHoklch(53.48% 0.17 301.5)
XYZxyz(20.9186, 13.7556, 50.2582)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EBE #8CBE4E
analogous
#4E54BE #804EBE #B84EBE
triadic
#804EBE #BE804E #4EBE80
tetradic
#804EBE #BE4E54 #8CBE4E #4EBEB8
square
#804EBE #BE4E54 #8CBE4E #4EBEB8
split-complementary
#804EBE #BEB84E #54BE4E
monochromatic
#45276A #623897 #804EBE #A07BCE #C0A8DF

Accessibility & contrast

On white

5.60
#804EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#804EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EBE
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EBE#FFFFFF#000000##FFFFFF
##804EBE1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1567C2
Deuteranopia (green-blind)
#2E67BB
Tritanopia (blue-blind)
#74657E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804ebe;
/* rgb */ color: rgb(128, 78, 190);
/* oklch */ color: oklch(53.5% 0.170 301.5);
Tailwind
colors: {
  custom: {
    50: '#a982d2',
    500: '#804ebe',
    950: '#000000',
  },
}
SCSS
$custom: #804ebe;
$custom-light: #a982d2;
$custom-dark: #000000;
JSON
{
  "hex": "#804ebe",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 266.786,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53484,
    "c": 0.17038,
    "h": 301.5
  },
  "luminance": 0.13756
}

Semantic roles & 50–950 ramp

primary
#804EBE
secondary
#B7CC9C
accent
#D6529B
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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