#AA38D1#AA38D1

#AA38D1 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.231 H 315.9°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AA38D1
RGBrgb(170, 56, 209)
HSLhsl(285, 62%, 52%)
HSVhsv(285, 73%, 82%)
CMYKcmyk(18.7%, 73.2%, 0%, 18%)
CIE-LABlab(46.95, 67.20, -57.10)
CIE-LCHlch(46.95, 88.18, 319.65°)
OKLaboklab(57.25% 0.1657 -0.1608)
OKLCHoklch(57.25% 0.231 315.9)
XYZxyz(29.4985, 15.9790, 61.8396)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38D1 #5FD138
analogous
#5E38D1 #AA38D1 #D138AC
triadic
#AA38D1 #D1AA38 #38D1AA
tetradic
#AA38D1 #D15E38 #5FD138 #38ACD1
square
#AA38D1 #D15E38 #5FD138 #38ACD1
split-complementary
#AA38D1 #ACD138 #38D15E
monochromatic
#5D1B74 #8526A6 #AA38D1 #BF6ADC #D49BE8

Accessibility & contrast

On white

5.01
#AA38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AA38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38D1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38D1#FFFFFF#000000##FFFFFF
##AA38D11.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#3672CE
Tritanopia (blue-blind)
#A75982
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa38d1;
/* rgb */ color: rgb(170, 56, 209);
/* oklch */ color: oklch(57.2% 0.231 315.9);
Tailwind
colors: {
  custom: {
    50: '#c87ae0',
    500: '#aa38d1',
    950: '#000000',
  },
}
SCSS
$custom: #aa38d1;
$custom-light: #c87ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38d1",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 284.706,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.23095,
    "h": 315.9
  },
  "luminance": 0.15978
}

Semantic roles & 50–950 ramp

primary
#AA38D1
secondary
#A2D491
accent
#E6426C
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AA38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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