#AA40CB#AA40CB

#AA40CB is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.6% C 0.216 H 317.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AA40CB
RGBrgb(170, 64, 203)
HSLhsl(286, 57%, 52%)
HSVhsv(286, 68%, 80%)
CMYKcmyk(16.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(47.66, 62.95, -52.50)
CIE-LCHlch(47.66, 81.97, 320.17°)
OKLaboklab(57.63% 0.1584 -0.1474)
OKLCHoklch(57.63% 0.216 317)
XYZxyz(29.1889, 16.5258, 58.1406)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40CB #61CB40
analogous
#6440CB #AA40CB #CB40A7
triadic
#AA40CB #CBAA40 #40CBAA
tetradic
#AA40CB #CB6440 #61CB40 #40A7CB
square
#AA40CB #CB6440 #61CB40 #40A7CB
split-complementary
#AA40CB #A7CB40 #40CB64
monochromatic
#5E1F72 #862CA2 #AA40CB #BF70D8 #D5A0E5

Accessibility & contrast

On white

4.88
#AA40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AA40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40CB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40CB#FFFFFF#000000##FFFFFF
##AA40CB1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#4374C8
Tritanopia (blue-blind)
#A85B81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa40cb;
/* rgb */ color: rgb(170, 64, 203);
/* oklch */ color: oklch(57.6% 0.216 317.0);
Tailwind
colors: {
  custom: {
    50: '#c77ddb',
    500: '#aa40cb',
    950: '#000000',
  },
}
SCSS
$custom: #aa40cb;
$custom-light: #c77ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40cb",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 285.755,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5763,
    "c": 0.21636,
    "h": 317
  },
  "luminance": 0.16525
}

Semantic roles & 50–950 ramp

primary
#AA40CB
secondary
#A4D295
accent
#E0476C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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