#AA38B1#AA38B1

#AA38B1 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.2% C 0.204 H 325.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AA38B1
RGBrgb(170, 56, 177)
HSLhsl(297, 52%, 46%)
HSVhsv(297, 68%, 69%)
CMYKcmyk(4%, 68.4%, 0%, 30.6%)
CIE-LABlab(45.01, 61.29, -41.57)
CIE-LCHlch(45.01, 74.06, 325.85°)
OKLaboklab(55.24% 0.1676 -0.1155)
OKLCHoklch(55.24% 0.204 325.4)
XYZxyz(25.9270, 14.5504, 43.0293)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38B1 #3FB138
analogous
#6D38B1 #AA38B1 #B1387B
triadic
#AA38B1 #B1AA38 #38B1AA
tetradic
#AA38B1 #B16D38 #3FB138 #387BB1
square
#AA38B1 #B16D38 #3FB138 #387BB1
split-complementary
#AA38B1 #7BB138 #38B16D
monochromatic
#511B54 #7D2983 #AA38B1 #C55BCB #D58ADA

Accessibility & contrast

On white

5.37
#AA38B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AA38B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38B1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38B1#FFFFFF#000000##FFFFFF
##AA38B11.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E61B4
Deuteranopia (green-blind)
#516FAE
Tritanopia (blue-blind)
#AE4B70
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #aa38b1;
/* rgb */ color: rgb(170, 56, 177);
/* oklch */ color: oklch(55.2% 0.204 325.4);
Tailwind
colors: {
  custom: {
    50: '#c778c9',
    500: '#aa38b1',
    950: '#000000',
  },
}
SCSS
$custom: #aa38b1;
$custom-light: #c778c9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38b1",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 296.529,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55243,
    "c": 0.20355,
    "h": 325.4
  },
  "luminance": 0.14549
}

Semantic roles & 50–950 ramp

primary
#AA38B1
secondary
#85C481
accent
#DB4C55
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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