#AA40CF#AA40CF

#AA40CF is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.220 H 315.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AA40CF
RGBrgb(170, 64, 207)
HSLhsl(284, 60%, 53%)
HSVhsv(284, 69%, 81%)
CMYKcmyk(17.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(47.90, 63.74, -54.41)
CIE-LCHlch(47.90, 83.80, 319.51°)
OKLaboklab(57.89% 0.1581 -0.153)
OKLCHoklch(57.89% 0.22 315.9)
XYZxyz(29.6717, 16.7190, 60.6835)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40CF #65CF40
analogous
#6340CF #AA40CF #CF40AC
triadic
#AA40CF #CFAA40 #40CFAA
tetradic
#AA40CF #CF6340 #65CF40 #40ACCF
square
#AA40CF #CF6340 #65CF40 #40ACCF
split-complementary
#AA40CF #ACCF40 #40CF63
monochromatic
#601E77 #872AA8 #AA40CF #C071DB #D6A2E8

Accessibility & contrast

On white

4.83
#AA40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AA40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40CF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40CF#FFFFFF#000000##FFFFFF
##AA40CF1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#3F75CC
Tritanopia (blue-blind)
#A85D83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #aa40cf;
/* rgb */ color: rgb(170, 64, 207);
/* oklch */ color: oklch(57.9% 0.220 315.9);
Tailwind
colors: {
  custom: {
    50: '#c77dde',
    500: '#aa40cf',
    950: '#000000',
  },
}
SCSS
$custom: #aa40cf;
$custom-light: #c77dde;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40cf",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 284.476,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57886,
    "c": 0.22001,
    "h": 315.9
  },
  "luminance": 0.16718
}

Semantic roles & 50–950 ramp

primary
#AA40CF
secondary
#A7D497
accent
#E3456E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AA40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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