#804EAC#804EAC

#804EAC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.149 H 306.5°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#804EAC
RGBrgb(128, 78, 172)
HSLhsl(272, 38%, 49%)
HSVhsv(272, 55%, 67%)
CMYKcmyk(25.6%, 54.7%, 0%, 32.5%)
CIE-LABlab(42.79, 39.32, -42.51)
CIE-LCHlch(42.79, 57.91, 312.77°)
OKLaboklab(52.33% 0.0885 -0.1195)
OKLCHoklch(52.33% 0.149 306.5)
XYZxyz(19.0713, 13.0167, 40.5295)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EAC #7AAC4E
analogous
#514EAC #804EAC #AC4EA9
triadic
#804EAC #AC804E #4EAC80
tetradic
#804EAC #AC514E #7AAC4E #4EA9AC
square
#804EAC #AC514E #7AAC4E #4EA9AC
split-complementary
#804EAC #A9AC4E #4EAC51
monochromatic
#412858 #613B82 #804EAC #9E76C1 #BCA0D4

Accessibility & contrast

On white

5.83
#804EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804EAC
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EAC#FFFFFF#000000##FFFFFF
##804EAC1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AF
Deuteranopia (green-blind)
#4065AA
Tritanopia (blue-blind)
#795F75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804eac;
/* rgb */ color: rgb(128, 78, 172);
/* oklch */ color: oklch(52.3% 0.149 306.5);
Tailwind
colors: {
  custom: {
    50: '#a781c5',
    500: '#804eac',
    950: '#000000',
  },
}
SCSS
$custom: #804eac;
$custom-light: #a781c5;
$custom-dark: #000000;
JSON
{
  "hex": "#804eac",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 271.915,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52331,
    "c": 0.14871,
    "h": 306.5
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#804EAC
secondary
#A9C195
accent
#CE5A90
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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