#804DB6#804DB6

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

Color values

HEX#804DB6
RGBrgb(128, 77, 182)
HSLhsl(269, 42%, 51%)
HSVhsv(269, 58%, 71%)
CMYKcmyk(29.7%, 57.7%, 0%, 28.6%)
CIE-LABlab(43.17, 42.32, -47.78)
CIE-LCHlch(43.17, 63.83, 311.53°)
OKLaboklab(52.81% 0.0902 -0.1349)
OKLCHoklch(52.81% 0.162 303.7)
XYZxyz(19.9976, 13.2744, 45.7556)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DB6 #83B64D
analogous
#4D4EB6 #804DB6 #B54DB6
triadic
#804DB6 #B6804D #4DB680
tetradic
#804DB6 #B64D4E #83B64D #4DB6B5
square
#804DB6 #B64D4E #83B64D #4DB6B5
split-complementary
#804DB6 #B6B54D #4EB64D
monochromatic
#432861 #623A8C #804DB6 #9F78C8 #BEA4DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804DB6#FFFFFF#000000##FFFFFF
##804DB61.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)
#2165B9
Deuteranopia (green-blind)
#3666B4
Tritanopia (blue-blind)
#76627A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804db6;
/* rgb */ color: rgb(128, 77, 182);
/* oklch */ color: oklch(52.8% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#a881cc',
    500: '#804db6',
    950: '#000000',
  },
}
SCSS
$custom: #804db6;
$custom-light: #a881cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804db6",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 182
  },
  "hsl": {
    "h": 269.143,
    "s": 41.833,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52806,
    "c": 0.1623,
    "h": 303.7
  },
  "luminance": 0.13274
}

Semantic roles & 50–950 ramp

primary
#804DB6
secondary
#B0C798
accent
#D25696
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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