#A040AF#A040AF

#A040AF is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.186 H 322.0°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#A040AF
RGBrgb(160, 64, 175)
HSLhsl(292, 46%, 47%)
HSVhsv(292, 63%, 69%)
CMYKcmyk(8.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(44.57, 55.25, -41.19)
CIE-LCHlch(44.57, 68.91, 323.29°)
OKLaboklab(54.59% 0.147 -0.1147)
OKLCHoklch(54.59% 0.186 322)
XYZxyz(24.0676, 14.2368, 42.0294)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040AF #4FAF40
analogous
#6940AF #A040AF #AF4087
triadic
#A040AF #AFA040 #40AFA0
tetradic
#A040AF #AF6940 #4FAF40 #4087AF
square
#A040AF #AF6940 #4FAF40 #4087AF
split-complementary
#A040AF #87AF40 #40AF69
monochromatic
#4E1F55 #773082 #A040AF #BA65C7 #CE92D7

Accessibility & contrast

On white

5.46
#A040AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#A040AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040AF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040AF#FFFFFF#000000##FFFFFF
##A040AF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#A25272
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a040af;
/* rgb */ color: rgb(160, 64, 175);
/* oklch */ color: oklch(54.6% 0.186 322.0);
Tailwind
colors: {
  custom: {
    50: '#bf7bc7',
    500: '#a040af',
    950: '#000000',
  },
}
SCSS
$custom: #a040af;
$custom-light: #bf7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#a040af",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 291.892,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54586,
    "c": 0.1864,
    "h": 322
  },
  "luminance": 0.14236
}

Semantic roles & 50–950 ramp

primary
#A040AF
secondary
#90C388
accent
#D65264
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A040AF

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

Preview Lab → · Contrast checker → · Palette generator →

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