#AA40AF#AA40AF

#AA40AF is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.191 H 325.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AA40AF
RGBrgb(170, 64, 175)
HSLhsl(297, 46%, 47%)
HSVhsv(297, 63%, 69%)
CMYKcmyk(2.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(46.06, 57.71, -38.74)
CIE-LCHlch(46.06, 69.51, 326.13°)
OKLaboklab(55.96% 0.1586 -0.1073)
OKLCHoklch(55.96% 0.191 325.9)
XYZxyz(26.1483, 15.3096, 42.1269)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40AF #45AF40
analogous
#7340AF #AA40AF #AF407D
triadic
#AA40AF #AFAA40 #40AFAA
tetradic
#AA40AF #AF7340 #45AF40 #407DAF
square
#AA40AF #AF7340 #45AF40 #407DAF
split-complementary
#AA40AF #7DAF40 #40AF73
monochromatic
#531F55 #7E3082 #AA40AF #C265C7 #D492D7

Accessibility & contrast

On white

5.17
#AA40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AA40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40AF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40AF#FFFFFF#000000##FFFFFF
##AA40AF1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#5672AC
Tritanopia (blue-blind)
#AE5072
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #aa40af;
/* rgb */ color: rgb(170, 64, 175);
/* oklch */ color: oklch(56.0% 0.191 325.9);
Tailwind
colors: {
  custom: {
    50: '#c67cc7',
    500: '#aa40af',
    950: '#000000',
  },
}
SCSS
$custom: #aa40af;
$custom-light: #c67cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40af",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 297.297,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55961,
    "c": 0.19149,
    "h": 325.9
  },
  "luminance": 0.15308
}

Semantic roles & 50–950 ramp

primary
#AA40AF
secondary
#8BC388
accent
#D65258
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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