#AB2299#AB2299

#AB2299 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.209 H 334.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AB2299
RGBrgb(171, 34, 153)
HSLhsl(308, 67%, 40%)
HSVhsv(308, 80%, 67%)
CMYKcmyk(0%, 80.1%, 10.5%, 32.9%)
CIE-LABlab(41.38, 64.77, -32.99)
CIE-LCHlch(41.38, 72.69, 333.01°)
OKLaboklab(52.25% 0.1886 -0.0904)
OKLCHoklch(52.25% 0.209 334.4)
XYZxyz(23.1167, 12.1040, 31.2496)
Luminance0.1210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2299 #22AB34
analogous
#7822AB #AB2299 #AB2255
triadic
#AB2299 #99AB22 #2299AB
tetradic
#AB2299 #AB7822 #22AB34 #2255AB
square
#AB2299 #AB7822 #22AB34 #2255AB
split-complementary
#AB2299 #55AB22 #22AB78
monochromatic
#450E3E #78186B #AB2299 #D734C1 #E167D1

Accessibility & contrast

On white

6.14
#AB2299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AB2299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2299
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2299#FFFFFF#000000##FFFFFF
##AB22991.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F559C
Deuteranopia (green-blind)
#556996
Tritanopia (blue-blind)
#B3305D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2299;
/* rgb */ color: rgb(171, 34, 153);
/* oklch */ color: oklch(52.3% 0.209 334.4);
Tailwind
colors: {
  custom: {
    50: '#c86fb7',
    500: '#ab2299',
    950: '#000000',
  },
}
SCSS
$custom: #ab2299;
$custom-light: #c86fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2299",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 307.883,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52252,
    "c": 0.20913,
    "h": 334.4
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#AB2299
secondary
#63C670
accent
#EA553E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2299

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

Preview Lab → · Contrast checker → · Palette generator →

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