#AA1B98#AA1B98

#AA1B98 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.214 H 334.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AA1B98
RGBrgb(170, 27, 152)
HSLhsl(308, 73%, 39%)
HSVhsv(308, 84%, 67%)
CMYKcmyk(0%, 84.1%, 10.6%, 33.3%)
CIE-LABlab(40.57, 66.09, -33.67)
CIE-LCHlch(40.57, 74.17, 333.00°)
OKLaboklab(51.62% 0.1925 -0.0924)
OKLCHoklch(51.62% 0.214 334.4)
XYZxyz(22.6373, 11.5990, 30.7463)
Luminance0.1160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1B98 #1BAA2D
analogous
#741BAA #AA1B98 #AA1B51
triadic
#AA1B98 #98AA1B #1B98AA
tetradic
#AA1B98 #AA741B #1BAA2D #1B51AA
square
#AA1B98 #AA741B #1BAA2D #1B51AA
split-complementary
#AA1B98 #51AA1B #1BAA74
monochromatic
#400A3A #751369 #AA1B98 #DC26C5 #E55BD3

Accessibility & contrast

On white

6.33
#AA1B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AA1B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA1B98
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1B98#FFFFFF#000000##FFFFFF
##AA1B981.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17539B
Deuteranopia (green-blind)
#536795
Tritanopia (blue-blind)
#B22C5B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #aa1b98;
/* rgb */ color: rgb(170, 27, 152);
/* oklch */ color: oklch(51.6% 0.214 334.4);
Tailwind
colors: {
  custom: {
    50: '#c76cb7',
    500: '#aa1b98',
    950: '#000000',
  },
}
SCSS
$custom: #aa1b98;
$custom-light: #c76cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1b98",
  "rgb": {
    "r": 170,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 307.552,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51623,
    "c": 0.21353,
    "h": 334.4
  },
  "luminance": 0.11597
}

Semantic roles & 50–950 ramp

primary
#AA1B98
secondary
#58C966
accent
#EF5039
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AA1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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