#804DAF#804DAF

#804DAF is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.154 H 305.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#804DAF
RGBrgb(128, 77, 175)
HSLhsl(271, 39%, 49%)
HSVhsv(271, 56%, 69%)
CMYKcmyk(26.9%, 56%, 0%, 31.4%)
CIE-LABlab(42.75, 40.61, -44.34)
CIE-LCHlch(42.75, 60.12, 312.48°)
OKLaboklab(52.36% 0.09 -0.1249)
OKLCHoklch(52.36% 0.154 305.8)
XYZxyz(19.2922, 12.9922, 42.0405)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DAF #7CAF4D
analogous
#4F4DAF #804DAF #AF4DAD
triadic
#804DAF #AF804D #4DAF80
tetradic
#804DAF #AF4F4D #7CAF4D #4DADAF
square
#804DAF #AF4F4D #7CAF4D #4DADAF
split-complementary
#804DAF #ADAF4D #4DAF4F
monochromatic
#42285A #613A85 #804DAF #9E76C3 #BCA1D6

Accessibility & contrast

On white

5.84
#804DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#804DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DAF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DAF#FFFFFF#000000##FFFFFF
##804DAF1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#3C65AD
Tritanopia (blue-blind)
#785F76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804daf;
/* rgb */ color: rgb(128, 77, 175);
/* oklch */ color: oklch(52.4% 0.154 305.8);
Tailwind
colors: {
  custom: {
    50: '#a881c7',
    500: '#804daf',
    950: '#000000',
  },
}
SCSS
$custom: #804daf;
$custom-light: #a881c7;
$custom-dark: #000000;
JSON
{
  "hex": "#804daf",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 271.224,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5236,
    "c": 0.15392,
    "h": 305.8
  },
  "luminance": 0.12992
}

Semantic roles & 50–950 ramp

primary
#804DAF
secondary
#ABC395
accent
#CF5991
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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