#AA338D#AA338D

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

Color values

HEX#AA338D
RGBrgb(170, 51, 141)
HSLhsl(315, 54%, 43%)
HSVhsv(315, 70%, 67%)
CMYKcmyk(0%, 70%, 17.1%, 33.3%)
CIE-LABlab(42.52, 57.38, -23.95)
CIE-LCHlch(42.52, 62.18, 337.35°)
OKLaboklab(52.85% 0.1703 -0.0647)
OKLCHoklch(52.85% 0.182 339.2)
XYZxyz(22.5696, 12.8389, 26.4836)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA338D #33AA50
analogous
#8B33AA #AA338D #AA3351
triadic
#AA338D #8DAA33 #338DAA
tetradic
#AA338D #AA8B33 #33AA50 #3351AA
square
#AA338D #AA8B33 #33AA50 #3351AA
split-complementary
#AA338D #51AA33 #33AA8B
monochromatic
#4C173F #7B2566 #AA338D #CA50AD #D97FC3

Accessibility & contrast

On white

5.89
#AA338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AA338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA338D
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA338D#FFFFFF#000000##FFFFFF
##AA338D1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395890
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#B4375B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa338d;
/* rgb */ color: rgb(170, 51, 141);
/* oklch */ color: oklch(52.8% 0.182 339.2);
Tailwind
colors: {
  custom: {
    50: '#c775ae',
    500: '#aa338d',
    950: '#000000',
  },
}
SCSS
$custom: #aa338d;
$custom-light: #c775ae;
$custom-dark: #000000;
JSON
{
  "hex": "#aa338d",
  "rgb": {
    "r": 170,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 314.622,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5285,
    "c": 0.18216,
    "h": 339.2
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#AA338D
secondary
#77C289
accent
#DD6E4B
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #AA338D

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

Preview Lab → · Contrast checker → · Palette generator →

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