#804EB3#804EB3

#804EB3 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.8% C 0.157 H 304.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#804EB3
RGBrgb(128, 78, 179)
HSLhsl(270, 40%, 50%)
HSVhsv(270, 56%, 70%)
CMYKcmyk(28.5%, 56.4%, 0%, 29.8%)
CIE-LABlab(43.20, 41.03, -45.98)
CIE-LCHlch(43.20, 61.62, 311.75°)
OKLaboklab(52.77% 0.0888 -0.1297)
OKLCHoklch(52.77% 0.157 304.4)
XYZxyz(19.7614, 13.2927, 44.1638)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB3 #81B34E
analogous
#4E4EB3 #804EB3 #B24EB3
triadic
#804EB3 #B3804E #4EB380
tetradic
#804EB3 #B34E4E #81B34E #4EB3B2
square
#804EB3 #B34E4E #81B34E #4EB3B2
split-complementary
#804EB3 #B3B24E #4EB34E
monochromatic
#43285E #623B89 #804EB3 #9F79C5 #BDA4D8

Accessibility & contrast

On white

5.74
#804EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#804EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB3#FFFFFF#000000##FFFFFF
##804EB31.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2765B6
Deuteranopia (green-blind)
#3A66B1
Tritanopia (blue-blind)
#776179
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804eb3;
/* rgb */ color: rgb(128, 78, 179);
/* oklch */ color: oklch(52.8% 0.157 304.4);
Tailwind
colors: {
  custom: {
    50: '#a881ca',
    500: '#804eb3',
    950: '#000000',
  },
}
SCSS
$custom: #804eb3;
$custom-light: #a881ca;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb3",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 269.703,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52767,
    "c": 0.15715,
    "h": 304.4
  },
  "luminance": 0.13293
}

Semantic roles & 50–950 ramp

primary
#804EB3
secondary
#AFC598
accent
#D05894
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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