#804DB7#804DB7

#804DB7 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.9% C 0.164 H 303.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#804DB7
RGBrgb(128, 77, 183)
HSLhsl(269, 42%, 51%)
HSVhsv(269, 58%, 72%)
CMYKcmyk(30.1%, 57.9%, 0%, 28.2%)
CIE-LABlab(43.24, 42.57, -48.27)
CIE-LCHlch(43.24, 64.36, 311.41°)
OKLaboklab(52.87% 0.0902 -0.1364)
OKLCHoklch(52.87% 0.164 303.5)
XYZxyz(20.1013, 13.3159, 46.3018)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DB7 #84B74D
analogous
#4D4FB7 #804DB7 #B54DB7
triadic
#804DB7 #B7804D #4DB780
tetradic
#804DB7 #B74D4F #84B74D #4DB7B5
square
#804DB7 #B74D4F #84B74D #4DB7B5
split-complementary
#804DB7 #B7B54D #4FB74D
monochromatic
#442862 #62398E #804DB7 #9F79C9 #BEA4DA

Accessibility & contrast

On white

5.73
#804DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#804DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DB7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DB7#FFFFFF#000000##FFFFFF
##804DB71.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#3566B5
Tritanopia (blue-blind)
#76627A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804db7;
/* rgb */ color: rgb(128, 77, 183);
/* oklch */ color: oklch(52.9% 0.164 303.5);
Tailwind
colors: {
  custom: {
    50: '#a881cd',
    500: '#804db7',
    950: '#000000',
  },
}
SCSS
$custom: #804db7;
$custom-light: #a881cd;
$custom-dark: #000000;
JSON
{
  "hex": "#804db7",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 268.868,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52871,
    "c": 0.1635,
    "h": 303.5
  },
  "luminance": 0.13316
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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