#AA2798#AA2798

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

Color values

HEX#AA2798
RGBrgb(170, 39, 152)
HSLhsl(308, 63%, 41%)
HSVhsv(308, 77%, 67%)
CMYKcmyk(0%, 77.1%, 10.6%, 33.3%)
CIE-LABlab(41.64, 63.02, -32.00)
CIE-LCHlch(41.64, 70.67, 333.08°)
OKLaboklab(52.39% 0.1834 -0.0876)
OKLCHoklch(52.39% 0.203 334.5)
XYZxyz(22.9708, 12.2661, 30.8575)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2798 #27AA39
analogous
#7A27AA #AA2798 #AA2756
triadic
#AA2798 #98AA27 #2798AA
tetradic
#AA2798 #AA7A27 #27AA39 #2756AA
square
#AA2798 #AA7A27 #27AA39 #2756AA
split-complementary
#AA2798 #56AA27 #27AA7A
monochromatic
#46103F #781C6B #AA2798 #D23CBE #DE6ECE

Accessibility & contrast

On white

6.08
#AA2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AA2798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2798
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2798#FFFFFF#000000##FFFFFF
##AA27981.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569B
Deuteranopia (green-blind)
#566995
Tritanopia (blue-blind)
#B2335E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa2798;
/* rgb */ color: rgb(170, 39, 152);
/* oklch */ color: oklch(52.4% 0.203 334.5);
Tailwind
colors: {
  custom: {
    50: '#c770b6',
    500: '#aa2798',
    950: '#000000',
  },
}
SCSS
$custom: #aa2798;
$custom-light: #c770b6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2798",
  "rgb": {
    "r": 170,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 308.244,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52385,
    "c": 0.20328,
    "h": 334.5
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#AA2798
secondary
#69C475
accent
#E65942
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AA2798

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

Preview Lab → · Contrast checker → · Palette generator →

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