#AA38AA#AA38AA

#AA38AA is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.8% C 0.198 H 327.9°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AA38AA
RGBrgb(170, 56, 170)
HSLhsl(300, 50%, 44%)
HSVhsv(300, 67%, 67%)
CMYKcmyk(0%, 67.1%, 0%, 33.3%)
CIE-LABlab(44.63, 60.08, -38.04)
CIE-LCHlch(44.63, 71.11, 327.66°)
OKLaboklab(54.84% 0.1675 -0.1052)
OKLCHoklch(54.84% 0.198 327.9)
XYZxyz(25.2471, 14.2784, 39.4487)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38AA #38AA38
analogous
#7138AA #AA38AA #AA3871
triadic
#AA38AA #AAAA38 #38AAAA
tetradic
#AA38AA #AA7138 #38AA38 #3871AA
square
#AA38AA #AA7138 #38AA38 #3871AA
split-complementary
#AA38AA #71AA38 #38AA71
monochromatic
#4E1A4E #7C297C #AA38AA #C857C8 #D785D7

Accessibility & contrast

On white

5.45
#AA38AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AA38AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38AA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38AA#FFFFFF#000000##FFFFFF
##AA38AA1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AD
Deuteranopia (green-blind)
#556FA7
Tritanopia (blue-blind)
#AF486C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #aa38aa;
/* rgb */ color: rgb(170, 56, 170);
/* oklch */ color: oklch(54.8% 0.198 327.9);
Tailwind
colors: {
  custom: {
    50: '#c778c4',
    500: '#aa38aa',
    950: '#000000',
  },
}
SCSS
$custom: #aa38aa;
$custom-light: #c778c4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38aa",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54844,
    "c": 0.19779,
    "h": 327.9
  },
  "luminance": 0.14277
}

Semantic roles & 50–950 ramp

primary
#AA38AA
secondary
#7DC17D
accent
#DA4E4E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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