#804EB2#804EB2

#804EB2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.7% C 0.156 H 304.7°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#804EB2
RGBrgb(128, 78, 178)
HSLhsl(270, 39%, 50%)
HSVhsv(270, 56%, 70%)
CMYKcmyk(28.1%, 56.2%, 0%, 30.2%)
CIE-LABlab(43.14, 40.78, -45.48)
CIE-LCHlch(43.14, 61.09, 311.88°)
OKLaboklab(52.7% 0.0888 -0.1282)
OKLCHoklch(52.7% 0.156 304.7)
XYZxyz(19.6606, 13.2524, 43.6331)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB2 #80B24E
analogous
#4E4EB2 #804EB2 #B24EB2
triadic
#804EB2 #B2804E #4EB280
tetradic
#804EB2 #B24E4E #80B24E #4EB2B2
square
#804EB2 #B24E4E #80B24E #4EB2B2
split-complementary
#804EB2 #B2B24E #4EB24E
monochromatic
#43295D #613B88 #804EB2 #9F79C5 #BDA3D7

Accessibility & contrast

On white

5.75
#804EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#804EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB2
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB2#FFFFFF#000000##FFFFFF
##804EB21.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B5
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#776178
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804eb2;
/* rgb */ color: rgb(128, 78, 178);
/* oklch */ color: oklch(52.7% 0.156 304.7);
Tailwind
colors: {
  custom: {
    50: '#a881c9',
    500: '#804eb2',
    950: '#000000',
  },
}
SCSS
$custom: #804eb2;
$custom-light: #a881c9;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb2",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 270,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52704,
    "c": 0.15595,
    "h": 304.7
  },
  "luminance": 0.13252
}

Semantic roles & 50–950 ramp

primary
#804EB2
secondary
#AEC498
accent
#CF5994
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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