#A040AC#A040AC

#A040AC is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.4% C 0.184 H 323.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#A040AC
RGBrgb(160, 64, 172)
HSLhsl(293, 46%, 46%)
HSVhsv(293, 63%, 67%)
CMYKcmyk(7%, 62.8%, 0%, 32.5%)
CIE-LABlab(44.40, 54.68, -39.68)
CIE-LCHlch(44.40, 67.56, 324.03°)
OKLaboklab(54.41% 0.1469 -0.1103)
OKLCHoklch(54.41% 0.184 323.1)
XYZxyz(23.7763, 14.1202, 40.4948)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040AC #4CAC40
analogous
#6A40AC #A040AC #AC4082
triadic
#A040AC #ACA040 #40ACA0
tetradic
#A040AC #AC6A40 #4CAC40 #4082AC
square
#A040AC #AC6A40 #4CAC40 #4082AC
split-complementary
#A040AC #82AC40 #40AC6A
monochromatic
#4D1F53 #772F7F #A040AC #BA64C5 #CE91D6

Accessibility & contrast

On white

5.49
#A040AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#A040AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040AC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040AC#FFFFFF#000000##FFFFFF
##A040AC1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A62AF
Deuteranopia (green-blind)
#506DA9
Tritanopia (blue-blind)
#A25070
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a040ac;
/* rgb */ color: rgb(160, 64, 172);
/* oklch */ color: oklch(54.4% 0.184 323.1);
Tailwind
colors: {
  custom: {
    50: '#bf7bc5',
    500: '#a040ac',
    950: '#000000',
  },
}
SCSS
$custom: #a040ac;
$custom-light: #bf7bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#a040ac",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 293.333,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54412,
    "c": 0.18367,
    "h": 323.1
  },
  "luminance": 0.14119
}

Semantic roles & 50–950 ramp

primary
#A040AC
secondary
#8DC187
accent
#D55261
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A040AC

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

Preview Lab → · Contrast checker → · Palette generator →

#A040AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva