#AA2897#AA2897

#AA2897 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.202 H 334.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AA2897
RGBrgb(170, 40, 151)
HSLhsl(309, 62%, 41%)
HSVhsv(309, 76%, 67%)
CMYKcmyk(0%, 76.5%, 11.2%, 33.3%)
CIE-LABlab(41.69, 62.57, -31.31)
CIE-LCHlch(41.69, 69.96, 333.42°)
OKLaboklab(52.41% 0.1825 -0.0856)
OKLCHoklch(52.41% 0.202 334.9)
XYZxyz(22.9226, 12.3001, 30.4391)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2897 #28AA3B
analogous
#7C28AA #AA2897 #AA2856
triadic
#AA2897 #97AA28 #2897AA
tetradic
#AA2897 #AA7C28 #28AA3B #2856AA
square
#AA2897 #AA7C28 #28AA3B #2856AA
split-complementary
#AA2897 #56AA28 #28AA7C
monochromatic
#47113F #781C6B #AA2897 #D23EBC #DD6FCD

Accessibility & contrast

On white

6.07
#AA2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AA2897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2897
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2897#FFFFFF#000000##FFFFFF
##AA28971.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#576994
Tritanopia (blue-blind)
#B2345D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa2897;
/* rgb */ color: rgb(170, 40, 151);
/* oklch */ color: oklch(52.4% 0.202 334.9);
Tailwind
colors: {
  custom: {
    50: '#c770b6',
    500: '#aa2897',
    950: '#000000',
  },
}
SCSS
$custom: #aa2897;
$custom-light: #c770b6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2897",
  "rgb": {
    "r": 170,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 308.769,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52406,
    "c": 0.20159,
    "h": 334.9
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#AA2897
secondary
#6AC477
accent
#E55B43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AA2897

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

Preview Lab → · Contrast checker → · Palette generator →

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