#AA38CC#AA38CC

#AA38CC is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.227 H 317.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AA38CC
RGBrgb(170, 56, 204)
HSLhsl(286, 59%, 51%)
HSVhsv(286, 73%, 80%)
CMYKcmyk(16.7%, 72.5%, 0%, 20%)
CIE-LABlab(46.63, 66.24, -54.74)
CIE-LCHlch(46.63, 85.93, 320.43°)
OKLaboklab(56.91% 0.1663 -0.1539)
OKLCHoklch(56.91% 0.227 317.2)
XYZxyz(28.8892, 15.7353, 58.6305)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38CC #5ACC38
analogous
#6038CC #AA38CC #CC38A4
triadic
#AA38CC #CCAA38 #38CCAA
tetradic
#AA38CC #CC6038 #5ACC38 #38A4CC
square
#AA38CC #CC6038 #5ACC38 #38A4CC
split-complementary
#AA38CC #A4CC38 #38CC60
monochromatic
#5B1C6E #83299E #AA38CC #BF69D8 #D499E5

Accessibility & contrast

On white

5.06
#AA38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AA38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38CC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38CC#FFFFFF#000000##FFFFFF
##AA38CC1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#3B72C9
Tritanopia (blue-blind)
#A8577F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa38cc;
/* rgb */ color: rgb(170, 56, 204);
/* oklch */ color: oklch(56.9% 0.227 317.2);
Tailwind
colors: {
  custom: {
    50: '#c779dc',
    500: '#aa38cc',
    950: '#000000',
  },
}
SCSS
$custom: #aa38cc;
$custom-light: #c779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38cc",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 286.216,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.22659,
    "h": 317.2
  },
  "luminance": 0.15734
}

Semantic roles & 50–950 ramp

primary
#AA38CC
secondary
#9ED18F
accent
#E24569
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AA38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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