#804EB6#804EB6

#804EB6 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.161 H 303.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#804EB6
RGBrgb(128, 78, 182)
HSLhsl(269, 42%, 51%)
HSVhsv(269, 57%, 71%)
CMYKcmyk(29.7%, 57.1%, 0%, 28.6%)
CIE-LABlab(43.38, 41.77, -47.45)
CIE-LCHlch(43.38, 63.21, 311.36°)
OKLaboklab(52.96% 0.0889 -0.134)
OKLCHoklch(52.96% 0.161 303.6)
XYZxyz(20.0681, 13.4154, 45.7791)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB6 #84B64E
analogous
#4E50B6 #804EB6 #B44EB6
triadic
#804EB6 #B6804E #4EB680
tetradic
#804EB6 #B64E50 #84B64E #4EB6B4
square
#804EB6 #B64E50 #84B64E #4EB6B4
split-complementary
#804EB6 #B6B44E #50B64E
monochromatic
#442861 #623A8D #804EB6 #9F79C8 #BEA5DA

Accessibility & contrast

On white

5.70
#804EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#804EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB6
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB6#FFFFFF#000000##FFFFFF
##804EB61.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2465B9
Deuteranopia (green-blind)
#3766B4
Tritanopia (blue-blind)
#76627A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804eb6;
/* rgb */ color: rgb(128, 78, 182);
/* oklch */ color: oklch(53.0% 0.161 303.6);
Tailwind
colors: {
  custom: {
    50: '#a881cc',
    500: '#804eb6',
    950: '#000000',
  },
}
SCSS
$custom: #804eb6;
$custom-light: #a881cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb6",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 268.846,
    "s": 41.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.16077,
    "h": 303.6
  },
  "luminance": 0.13415
}

Semantic roles & 50–950 ramp

primary
#804EB6
secondary
#B1C799
accent
#D15696
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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