#AB2297#AB2297

#AB2297 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.208 H 335.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AB2297
RGBrgb(171, 34, 151)
HSLhsl(309, 67%, 40%)
HSVhsv(309, 80%, 67%)
CMYKcmyk(0%, 80.1%, 11.7%, 32.9%)
CIE-LABlab(41.28, 64.48, -31.95)
CIE-LCHlch(41.28, 71.96, 333.64°)
OKLaboklab(52.14% 0.1885 -0.0874)
OKLCHoklch(52.14% 0.208 335.1)
XYZxyz(22.9529, 12.0385, 30.3870)
Luminance0.1204 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2297 #22AB36
analogous
#7A22AB #AB2297 #AB2253
triadic
#AB2297 #97AB22 #2297AB
tetradic
#AB2297 #AB7A22 #22AB36 #2253AB
square
#AB2297 #AB7A22 #22AB36 #2253AB
split-complementary
#AB2297 #53AB22 #22AB7A
monochromatic
#450E3D #78186A #AB2297 #D734BF #E167CF

Accessibility & contrast

On white

6.16
#AB2297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB2297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2297
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2297#FFFFFF#000000##FFFFFF
##AB22971.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559A
Deuteranopia (green-blind)
#566894
Tritanopia (blue-blind)
#B42F5C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2297;
/* rgb */ color: rgb(171, 34, 151);
/* oklch */ color: oklch(52.1% 0.208 335.1);
Tailwind
colors: {
  custom: {
    50: '#c86eb6',
    500: '#ab2297',
    950: '#000000',
  },
}
SCSS
$custom: #ab2297;
$custom-light: #c86eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2297",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 308.759,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52144,
    "c": 0.20777,
    "h": 335.1
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#AB2297
secondary
#63C671
accent
#EA573E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2297

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

Preview Lab → · Contrast checker → · Palette generator →

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