#AA338B#AA338B

#AA338B is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.8% C 0.181 H 340.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AA338B
RGBrgb(170, 51, 139)
HSLhsl(316, 54%, 43%)
HSVhsv(316, 70%, 67%)
CMYKcmyk(0%, 70%, 18.2%, 33.3%)
CIE-LABlab(42.43, 57.09, -22.87)
CIE-LCHlch(42.43, 61.50, 338.17°)
OKLaboklab(52.76% 0.17 -0.0617)
OKLCHoklch(52.76% 0.181 340.1)
XYZxyz(22.4222, 12.7799, 25.7070)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA338B #33AA52
analogous
#8D33AA #AA338B #AA334F
triadic
#AA338B #8BAA33 #338BAA
tetradic
#AA338B #AA8D33 #33AA52 #334FAA
square
#AA338B #AA8D33 #33AA52 #334FAA
split-complementary
#AA338B #4FAA33 #33AA8D
monochromatic
#4C173E #7B2565 #AA338B #CA50AA #D97FC1

Accessibility & contrast

On white

5.91
#AA338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AA338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA338B
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA338B#FFFFFF#000000##FFFFFF
##AA338B1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#B4365A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa338b;
/* rgb */ color: rgb(170, 51, 139);
/* oklch */ color: oklch(52.8% 0.181 340.1);
Tailwind
colors: {
  custom: {
    50: '#c775ad',
    500: '#aa338b',
    950: '#000000',
  },
}
SCSS
$custom: #aa338b;
$custom-light: #c775ad;
$custom-dark: #000000;
JSON
{
  "hex": "#aa338b",
  "rgb": {
    "r": 170,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 315.63,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52756,
    "c": 0.1808,
    "h": 340.1
  },
  "luminance": 0.12778
}

Semantic roles & 50–950 ramp

primary
#AA338B
secondary
#77C28B
accent
#DD714B
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #AA338B

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

Preview Lab → · Contrast checker → · Palette generator →

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