#804EB4#804EB4

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

Color values

HEX#804EB4
RGBrgb(128, 78, 180)
HSLhsl(269, 40%, 51%)
HSVhsv(269, 57%, 71%)
CMYKcmyk(28.9%, 56.7%, 0%, 29.4%)
CIE-LABlab(43.26, 41.28, -46.47)
CIE-LCHlch(43.26, 62.15, 311.62°)
OKLaboklab(52.83% 0.0888 -0.1311)
OKLCHoklch(52.83% 0.158 304.1)
XYZxyz(19.8629, 13.3333, 44.6983)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB4 #82B44E
analogous
#4E4FB4 #804EB4 #B34EB4
triadic
#804EB4 #B4804E #4EB480
tetradic
#804EB4 #B44E4F #82B44E #4EB4B3
square
#804EB4 #B44E4F #82B44E #4EB4B3
split-complementary
#804EB4 #B4B34E #4FB44E
monochromatic
#43285F #623B8A #804EB4 #9F79C6 #BEA4D8

Accessibility & contrast

On white

5.73
#804EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#804EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB4#FFFFFF#000000##FFFFFF
##804EB41.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B7
Deuteranopia (green-blind)
#3966B2
Tritanopia (blue-blind)
#776279
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804eb4;
/* rgb */ color: rgb(128, 78, 180);
/* oklch */ color: oklch(52.8% 0.158 304.1);
Tailwind
colors: {
  custom: {
    50: '#a881cb',
    500: '#804eb4',
    950: '#000000',
  },
}
SCSS
$custom: #804eb4;
$custom-light: #a881cb;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb4",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 269.412,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52831,
    "c": 0.15836,
    "h": 304.1
  },
  "luminance": 0.13333
}

Semantic roles & 50–950 ramp

primary
#804EB4
secondary
#AFC698
accent
#D05795
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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