#804EB5#804EB5

#804EB5 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.9% C 0.160 H 303.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#804EB5
RGBrgb(128, 78, 181)
HSLhsl(269, 41%, 51%)
HSVhsv(269, 57%, 71%)
CMYKcmyk(29.3%, 56.9%, 0%, 29%)
CIE-LABlab(43.32, 41.52, -46.96)
CIE-LCHlch(43.32, 62.68, 311.49°)
OKLaboklab(52.9% 0.0889 -0.1325)
OKLCHoklch(52.9% 0.16 303.8)
XYZxyz(19.9651, 13.3742, 45.2368)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB5 #83B54E
analogous
#4E4FB5 #804EB5 #B34EB5
triadic
#804EB5 #B5804E #4EB580
tetradic
#804EB5 #B54E4F #83B54E #4EB5B3
square
#804EB5 #B54E4F #83B54E #4EB5B3
split-complementary
#804EB5 #B5B34E #4FB54E
monochromatic
#432860 #623A8B #804EB5 #9F79C7 #BEA4D9

Accessibility & contrast

On white

5.71
#804EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804EB5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB5#FFFFFF#000000##FFFFFF
##804EB51.005.713.675.71
#FFFFFF5.711.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B8
Deuteranopia (green-blind)
#3866B3
Tritanopia (blue-blind)
#76627A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804eb5;
/* rgb */ color: rgb(128, 78, 181);
/* oklch */ color: oklch(52.9% 0.160 303.8);
Tailwind
colors: {
  custom: {
    50: '#a881cc',
    500: '#804eb5',
    950: '#000000',
  },
}
SCSS
$custom: #804eb5;
$custom-light: #a881cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb5",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 269.126,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52895,
    "c": 0.15957,
    "h": 303.8
  },
  "luminance": 0.13374
}

Semantic roles & 50–950 ramp

primary
#804EB5
secondary
#B0C699
accent
#D15796
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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