#804DB5#804DB5

#804DB5 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.7% C 0.161 H 304.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#804DB5
RGBrgb(128, 77, 181)
HSLhsl(269, 41%, 51%)
HSVhsv(269, 57%, 71%)
CMYKcmyk(29.3%, 57.5%, 0%, 29%)
CIE-LABlab(43.11, 42.08, -47.29)
CIE-LCHlch(43.11, 63.30, 311.66°)
OKLaboklab(52.74% 0.0901 -0.1335)
OKLCHoklch(52.74% 0.161 304)
XYZxyz(19.8946, 13.2332, 45.2133)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DB5 #82B54D
analogous
#4D4EB5 #804DB5 #B44DB5
triadic
#804DB5 #B5804D #4DB580
tetradic
#804DB5 #B54D4E #82B54D #4DB5B4
square
#804DB5 #B54D4E #82B54D #4DB5B4
split-complementary
#804DB5 #B5B44D #4EB54D
monochromatic
#432860 #623A8B #804DB5 #9F78C7 #BEA3D9

Accessibility & contrast

On white

5.76
#804DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804DB5
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DB5#FFFFFF#000000##FFFFFF
##804DB51.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2265B8
Deuteranopia (green-blind)
#3766B3
Tritanopia (blue-blind)
#766179
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804db5;
/* rgb */ color: rgb(128, 77, 181);
/* oklch */ color: oklch(52.7% 0.161 304.0);
Tailwind
colors: {
  custom: {
    50: '#a881cc',
    500: '#804db5',
    950: '#000000',
  },
}
SCSS
$custom: #804db5;
$custom-light: #a881cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804db5",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 269.423,
    "s": 41.27,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52742,
    "c": 0.1611,
    "h": 304
  },
  "luminance": 0.13233
}

Semantic roles & 50–950 ramp

primary
#804DB5
secondary
#AFC698
accent
#D15795
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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