#AA27B1#AA27B1

#AA27B1 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.222 H 325.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AA27B1
RGBrgb(170, 39, 177)
HSLhsl(297, 64%, 42%)
HSVhsv(297, 78%, 69%)
CMYKcmyk(4%, 78%, 0%, 30.6%)
CIE-LABlab(43.02, 66.97, -44.74)
CIE-LCHlch(43.02, 80.54, 326.25°)
OKLaboklab(53.82% 0.1834 -0.1246)
OKLCHoklch(53.82% 0.222 325.8)
XYZxyz(25.2384, 13.1731, 42.7998)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA27B1 #2EB127
analogous
#6527B1 #AA27B1 #B12773
triadic
#AA27B1 #B1AA27 #27B1AA
tetradic
#AA27B1 #B16527 #2EB127 #2773B1
square
#AA27B1 #B16527 #2EB127 #2773B1
split-complementary
#AA27B1 #73B127 #27B165
monochromatic
#4A114D #7A1C7F #AA27B1 #CD40D5 #DA72E0

Accessibility & contrast

On white

5.78
#AA27B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AA27B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA27B1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA27B1#FFFFFF#000000##FFFFFF
##AA27B11.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#486BAE
Tritanopia (blue-blind)
#AE416C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa27b1;
/* rgb */ color: rgb(170, 39, 177);
/* oklch */ color: oklch(53.8% 0.222 325.8);
Tailwind
colors: {
  custom: {
    50: '#c771c9',
    500: '#aa27b1',
    950: '#000000',
  },
}
SCSS
$custom: #aa27b1;
$custom-light: #c771c9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa27b1",
  "rgb": {
    "r": 170,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 296.957,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53822,
    "c": 0.22171,
    "h": 325.8
  },
  "luminance": 0.13171
}

Semantic roles & 50–950 ramp

primary
#AA27B1
secondary
#71C76D
accent
#E74149
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AA27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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