#804DB4#804DB4

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

Color values

HEX#804DB4
RGBrgb(128, 77, 180)
HSLhsl(270, 41%, 50%)
HSVhsv(270, 57%, 71%)
CMYKcmyk(28.9%, 57.2%, 0%, 29.4%)
CIE-LABlab(43.05, 41.83, -46.80)
CIE-LCHlch(43.05, 62.77, 311.79°)
OKLaboklab(52.68% 0.0901 -0.1321)
OKLCHoklch(52.68% 0.16 304.3)
XYZxyz(19.7924, 13.1923, 44.6748)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DB4 #81B44D
analogous
#4D4DB4 #804DB4 #B34DB4
triadic
#804DB4 #B4804D #4DB480
tetradic
#804DB4 #B44D4D #81B44D #4DB4B3
square
#804DB4 #B44D4D #81B44D #4DB4B3
split-complementary
#804DB4 #B4B34D #4DB44D
monochromatic
#43285F #623A8A #804DB4 #9F78C6 #BDA3D8

Accessibility & contrast

On white

5.77
#804DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#804DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DB4
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DB4#FFFFFF#000000##FFFFFF
##804DB41.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#3866B2
Tritanopia (blue-blind)
#776179
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804db4;
/* rgb */ color: rgb(128, 77, 180);
/* oklch */ color: oklch(52.7% 0.160 304.3);
Tailwind
colors: {
  custom: {
    50: '#a881cb',
    500: '#804db4',
    950: '#000000',
  },
}
SCSS
$custom: #804db4;
$custom-light: #a881cb;
$custom-dark: #000000;
JSON
{
  "hex": "#804db4",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 269.709,
    "s": 40.711,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52677,
    "c": 0.1599,
    "h": 304.3
  },
  "luminance": 0.13192
}

Semantic roles & 50–950 ramp

primary
#804DB4
secondary
#AFC597
accent
#D15794
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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