#804CAF#804CAF

#804CAF is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.155 H 306.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#804CAF
RGBrgb(128, 76, 175)
HSLhsl(272, 39%, 49%)
HSVhsv(272, 57%, 69%)
CMYKcmyk(26.9%, 56.6%, 0%, 31.4%)
CIE-LABlab(42.54, 41.16, -44.67)
CIE-LCHlch(42.54, 60.74, 312.65°)
OKLaboklab(52.21% 0.0913 -0.1258)
OKLCHoklch(52.21% 0.155 306)
XYZxyz(19.2228, 12.8534, 42.0174)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CAF #7BAF4C
analogous
#4F4CAF #804CAF #AF4CAD
triadic
#804CAF #AF804C #4CAF80
tetradic
#804CAF #AF4F4C #7BAF4C #4CADAF
square
#804CAF #AF4F4C #7BAF4C #4CADAF
split-complementary
#804CAF #ADAF4C #4CAF4F
monochromatic
#42275A #613984 #804CAF #9E75C3 #BCA0D6

Accessibility & contrast

On white

5.88
#804CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#804CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CAF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CAF#FFFFFF#000000##FFFFFF
##804CAF1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B2
Deuteranopia (green-blind)
#3B65AD
Tritanopia (blue-blind)
#785F76
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804caf;
/* rgb */ color: rgb(128, 76, 175);
/* oklch */ color: oklch(52.2% 0.155 306.0);
Tailwind
colors: {
  custom: {
    50: '#a880c7',
    500: '#804caf',
    950: '#000000',
  },
}
SCSS
$custom: #804caf;
$custom-light: #a880c7;
$custom-dark: #000000;
JSON
{
  "hex": "#804caf",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 271.515,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52206,
    "c": 0.15549,
    "h": 306
  },
  "luminance": 0.12853
}

Semantic roles & 50–950 ramp

primary
#804CAF
secondary
#AAC294
accent
#CF5891
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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