#AA38D0#AA38D0

#AA38D0 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.230 H 316.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AA38D0
RGBrgb(170, 56, 208)
HSLhsl(285, 62%, 52%)
HSVhsv(285, 73%, 82%)
CMYKcmyk(18.3%, 73.1%, 0%, 18.4%)
CIE-LABlab(46.88, 67.01, -56.63)
CIE-LCHlch(46.88, 87.73, 319.80°)
OKLaboklab(57.18% 0.1659 -0.1595)
OKLCHoklch(57.18% 0.23 316.1)
XYZxyz(29.3751, 15.9296, 61.1896)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38D0 #5ED038
analogous
#5E38D0 #AA38D0 #D038AA
triadic
#AA38D0 #D0AA38 #38D0AA
tetradic
#AA38D0 #D05E38 #5ED038 #38AAD0
square
#AA38D0 #D05E38 #5ED038 #38AAD0
split-complementary
#AA38D0 #AAD038 #38D05E
monochromatic
#5D1B73 #8527A4 #AA38D0 #BF6ADC #D49BE7

Accessibility & contrast

On white

5.02
#AA38D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AA38D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38D0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38D0#FFFFFF#000000##FFFFFF
##AA38D01.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D4
Deuteranopia (green-blind)
#3772CD
Tritanopia (blue-blind)
#A75881
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa38d0;
/* rgb */ color: rgb(170, 56, 208);
/* oklch */ color: oklch(57.2% 0.230 316.1);
Tailwind
colors: {
  custom: {
    50: '#c87adf',
    500: '#aa38d0',
    950: '#000000',
  },
}
SCSS
$custom: #aa38d0;
$custom-light: #c87adf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38d0",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 285,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57178,
    "c": 0.23008,
    "h": 316.1
  },
  "luminance": 0.15928
}

Semantic roles & 50–950 ramp

primary
#AA38D0
secondary
#A1D391
accent
#E5436B
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AA38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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