#AA38B2#AA38B2

#AA38B2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.3% C 0.204 H 325.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AA38B2
RGBrgb(170, 56, 178)
HSLhsl(296, 52%, 46%)
HSVhsv(296, 69%, 70%)
CMYKcmyk(4.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(45.07, 61.46, -42.08)
CIE-LCHlch(45.07, 74.48, 325.61°)
OKLaboklab(55.3% 0.1676 -0.1169)
OKLCHoklch(55.3% 0.204 325.1)
XYZxyz(26.0270, 14.5904, 43.5562)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38B2 #40B238
analogous
#6D38B2 #AA38B2 #B2387D
triadic
#AA38B2 #B2AA38 #38B2AA
tetradic
#AA38B2 #B26D38 #40B238 #387DB2
square
#AA38B2 #B26D38 #40B238 #387DB2
split-complementary
#AA38B2 #7DB238 #38B26D
monochromatic
#511B55 #7E2983 #AA38B2 #C45CCC #D58ADA

Accessibility & contrast

On white

5.36
#AA38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AA38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38B2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38B2#FFFFFF#000000##FFFFFF
##AA38B21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C62B5
Deuteranopia (green-blind)
#506FAF
Tritanopia (blue-blind)
#AE4B71
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #aa38b2;
/* rgb */ color: rgb(170, 56, 178);
/* oklch */ color: oklch(55.3% 0.204 325.1);
Tailwind
colors: {
  custom: {
    50: '#c778c9',
    500: '#aa38b2',
    950: '#000000',
  },
}
SCSS
$custom: #aa38b2;
$custom-light: #c778c9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38b2",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 296.066,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55301,
    "c": 0.20438,
    "h": 325.1
  },
  "luminance": 0.14589
}

Semantic roles & 50–950 ramp

primary
#AA38B2
secondary
#86C581
accent
#DC4C56
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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