#804EBB#804EBB

#804EBB is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.167 H 302.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#804EBB
RGBrgb(128, 78, 187)
HSLhsl(268, 44%, 52%)
HSVhsv(268, 58%, 73%)
CMYKcmyk(31.6%, 58.3%, 0%, 26.7%)
CIE-LABlab(43.69, 43.02, -49.88)
CIE-LCHlch(43.69, 65.87, 310.78°)
OKLaboklab(53.29% 0.0889 -0.1411)
OKLCHoklch(53.29% 0.167 302.2)
XYZxyz(20.5940, 13.6258, 48.5492)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EBB #89BB4E
analogous
#4E53BB #804EBB #B74EBB
triadic
#804EBB #BB804E #4EBB80
tetradic
#804EBB #BB4E53 #89BB4E #4EBBB7
square
#804EBB #BB4E53 #89BB4E #4EBBB7
split-complementary
#804EBB #BBB74E #53BB4E
monochromatic
#452867 #623993 #804EBB #A07ACC #BFA6DD

Accessibility & contrast

On white

5.64
#804EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#804EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EBB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EBB#FFFFFF#000000##FFFFFF
##804EBB1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B66BF
Deuteranopia (green-blind)
#3267B8
Tritanopia (blue-blind)
#75647D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804ebb;
/* rgb */ color: rgb(128, 78, 187);
/* oklch */ color: oklch(53.3% 0.167 302.2);
Tailwind
colors: {
  custom: {
    50: '#a882d0',
    500: '#804ebb',
    950: '#000000',
  },
}
SCSS
$custom: #804ebb;
$custom-light: #a882d0;
$custom-dark: #000000;
JSON
{
  "hex": "#804ebb",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 187
  },
  "hsl": {
    "h": 267.523,
    "s": 44.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53285,
    "c": 0.16678,
    "h": 302.2
  },
  "luminance": 0.13626
}

Semantic roles & 50–950 ramp

primary
#804EBB
secondary
#B4CA9B
accent
#D45499
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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