#804BAD#804BAD

#804BAD is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.155 H 306.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#804BAD
RGBrgb(128, 75, 173)
HSLhsl(272, 40%, 49%)
HSVhsv(272, 57%, 68%)
CMYKcmyk(26%, 56.6%, 0%, 32.2%)
CIE-LABlab(42.21, 41.22, -44.02)
CIE-LCHlch(42.21, 60.31, 313.12°)
OKLaboklab(51.93% 0.0926 -0.1239)
OKLCHoklch(51.93% 0.155 306.8)
XYZxyz(18.9594, 12.6387, 40.9678)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BAD #78AD4B
analogous
#4F4BAD #804BAD #AD4BA9
triadic
#804BAD #AD804B #4BAD80
tetradic
#804BAD #AD4F4B #78AD4B #4BA9AD
square
#804BAD #AD4F4B #78AD4B #4BA9AD
split-complementary
#804BAD #A9AD4B #4BAD4F
monochromatic
#412658 #603882 #804BAD #9E73C2 #BB9ED5

Accessibility & contrast

On white

5.95
#804BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#804BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BAD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BAD#FFFFFF#000000##FFFFFF
##804BAD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2862B0
Deuteranopia (green-blind)
#3C64AB
Tritanopia (blue-blind)
#795D75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804bad;
/* rgb */ color: rgb(128, 75, 173);
/* oklch */ color: oklch(51.9% 0.155 306.8);
Tailwind
colors: {
  custom: {
    50: '#a87fc6',
    500: '#804bad',
    950: '#000000',
  },
}
SCSS
$custom: #804bad;
$custom-light: #a87fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#804bad",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 173
  },
  "hsl": {
    "h": 272.449,
    "s": 39.516,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.15468,
    "h": 306.8
  },
  "luminance": 0.12638
}

Semantic roles & 50–950 ramp

primary
#804BAD
secondary
#A8C192
accent
#CF588F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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