#AA38C6#AA38C6

#AA38C6 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.221 H 318.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AA38C6
RGBrgb(170, 56, 198)
HSLhsl(288, 56%, 50%)
HSVhsv(288, 72%, 78%)
CMYKcmyk(14.1%, 71.7%, 0%, 22.4%)
CIE-LABlab(46.25, 65.11, -51.87)
CIE-LCHlch(46.25, 83.24, 321.45°)
OKLaboklab(56.53% 0.1668 -0.1455)
OKLCHoklch(56.53% 0.221 318.9)
XYZxyz(28.1834, 15.4529, 54.9133)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38C6 #54C638
analogous
#6338C6 #AA38C6 #C6389B
triadic
#AA38C6 #C6AA38 #38C6AA
tetradic
#AA38C6 #C66338 #54C638 #389BC6
square
#AA38C6 #C66338 #54C638 #389BC6
split-complementary
#AA38C6 #9BC638 #38C663
monochromatic
#581D67 #812B96 #AA38C6 #BF67D4 #D397E2

Accessibility & contrast

On white

5.13
#AA38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AA38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38C6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38C6#FFFFFF#000000##FFFFFF
##AA38C61.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CA
Deuteranopia (green-blind)
#4171C3
Tritanopia (blue-blind)
#AA547C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa38c6;
/* rgb */ color: rgb(170, 56, 198);
/* oklch */ color: oklch(56.5% 0.221 318.9);
Tailwind
colors: {
  custom: {
    50: '#c779d8',
    500: '#aa38c6',
    950: '#000000',
  },
}
SCSS
$custom: #aa38c6;
$custom-light: #c779d8;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38c6",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 288.169,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56525,
    "c": 0.22138,
    "h": 318.9
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#AA38C6
secondary
#99CD8D
accent
#DF4966
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AA38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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