#804EBD#804EBD

#804EBD is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.4% C 0.169 H 301.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#804EBD
RGBrgb(128, 78, 189)
HSLhsl(267, 46%, 52%)
HSVhsv(267, 59%, 74%)
CMYKcmyk(32.3%, 58.7%, 0%, 25.9%)
CIE-LABlab(43.82, 43.52, -50.84)
CIE-LCHlch(43.82, 66.93, 310.56°)
OKLaboklab(53.42% 0.0889 -0.1439)
OKLCHoklch(53.42% 0.169 301.7)
XYZxyz(20.8096, 13.7120, 49.6846)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EBD #8BBD4E
analogous
#4E54BD #804EBD #B84EBD
triadic
#804EBD #BD804E #4EBD80
tetradic
#804EBD #BD4E54 #8BBD4E #4EBDB8
square
#804EBD #BD4E54 #8BBD4E #4EBDB8
split-complementary
#804EBD #BDB84E #54BD4E
monochromatic
#452769 #623896 #804EBD #A07BCE #C0A7DE

Accessibility & contrast

On white

5.61
#804EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#804EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EBD
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EBD#FFFFFF#000000##FFFFFF
##804EBD1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1767C1
Deuteranopia (green-blind)
#2F67BA
Tritanopia (blue-blind)
#74657E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804ebd;
/* rgb */ color: rgb(128, 78, 189);
/* oklch */ color: oklch(53.4% 0.169 301.7);
Tailwind
colors: {
  custom: {
    50: '#a982d1',
    500: '#804ebd',
    950: '#000000',
  },
}
SCSS
$custom: #804ebd;
$custom-light: #a982d1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ebd",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 267.027,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53417,
    "c": 0.16919,
    "h": 301.7
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

primary
#804EBD
secondary
#B6CC9B
accent
#D5529A
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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