#AA238E#AA238E

#AA238E is a mid, highly saturated pink. Relative luminance 0.117; OKLCH L 51.6% C 0.200 H 338.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AA238E
RGBrgb(170, 35, 142)
HSLhsl(312, 66%, 40%)
HSVhsv(312, 79%, 67%)
CMYKcmyk(0%, 79.4%, 16.5%, 33.3%)
CIE-LABlab(40.74, 62.71, -27.33)
CIE-LCHlch(40.74, 68.41, 336.45°)
OKLaboklab(51.58% 0.186 -0.0742)
OKLCHoklch(51.58% 0.2 338.2)
XYZxyz(22.0616, 11.7033, 26.6830)
Luminance0.1170 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA238E #23AA3F
analogous
#8223AA #AA238E #AA234B
triadic
#AA238E #8EAA23 #238EAA
tetradic
#AA238E #AA8223 #23AA3F #234BAA
square
#AA238E #AA8223 #23AA3F #234BAA
split-complementary
#AA238E #4BAA23 #23AA82
monochromatic
#440E39 #771964 #AA238E #D535B4 #E068C7

Accessibility & contrast

On white

6.29
#AA238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AA238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA238E
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA238E#FFFFFF#000000##FFFFFF
##AA238E1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5391
Deuteranopia (green-blind)
#59678B
Tritanopia (blue-blind)
#B42B57
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #aa238e;
/* rgb */ color: rgb(170, 35, 142);
/* oklch */ color: oklch(51.6% 0.200 338.2);
Tailwind
colors: {
  custom: {
    50: '#c76eaf',
    500: '#aa238e',
    950: '#000000',
  },
}
SCSS
$custom: #aa238e;
$custom-light: #c76eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa238e",
  "rgb": {
    "r": 170,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 312.444,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51579,
    "c": 0.20029,
    "h": 338.2
  },
  "luminance": 0.11701
}

Semantic roles & 50–950 ramp

primary
#AA238E
secondary
#63C678
accent
#E9623F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AA238E

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

Preview Lab → · Contrast checker → · Palette generator →

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