#804EBA#804EBA

#804EBA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.166 H 302.5°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#804EBA
RGBrgb(128, 78, 186)
HSLhsl(268, 44%, 52%)
HSVhsv(268, 58%, 73%)
CMYKcmyk(31.2%, 58.1%, 0%, 27.1%)
CIE-LABlab(43.63, 42.77, -49.39)
CIE-LCHlch(43.63, 65.34, 310.89°)
OKLaboklab(53.22% 0.0889 -0.1397)
OKLCHoklch(53.22% 0.166 302.5)
XYZxyz(20.4874, 13.5831, 47.9873)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EBA #88BA4E
analogous
#4E52BA #804EBA #B64EBA
triadic
#804EBA #BA804E #4EBA80
tetradic
#804EBA #BA4E52 #88BA4E #4EBAB6
square
#804EBA #BA4E52 #88BA4E #4EBAB6
split-complementary
#804EBA #BAB64E #52BA4E
monochromatic
#442866 #623992 #804EBA #A07ACB #BFA6DC

Accessibility & contrast

On white

5.65
#804EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#804EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EBA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EBA#FFFFFF#000000##FFFFFF
##804EBA1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BE
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#75647C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804eba;
/* rgb */ color: rgb(128, 78, 186);
/* oklch */ color: oklch(53.2% 0.166 302.5);
Tailwind
colors: {
  custom: {
    50: '#a882cf',
    500: '#804eba',
    950: '#000000',
  },
}
SCSS
$custom: #804eba;
$custom-light: #a882cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804eba",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 267.778,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53219,
    "c": 0.16558,
    "h": 302.5
  },
  "luminance": 0.13583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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