#AB2298#AB2298

#AB2298 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.2% C 0.208 H 334.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AB2298
RGBrgb(171, 34, 152)
HSLhsl(308, 67%, 40%)
HSVhsv(308, 80%, 67%)
CMYKcmyk(0%, 80.1%, 11.1%, 32.9%)
CIE-LABlab(41.33, 64.63, -32.47)
CIE-LCHlch(41.33, 72.32, 333.32°)
OKLaboklab(52.2% 0.1885 -0.0889)
OKLCHoklch(52.2% 0.208 334.7)
XYZxyz(23.0344, 12.0711, 30.8165)
Luminance0.1207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2298 #22AB35
analogous
#7922AB #AB2298 #AB2254
triadic
#AB2298 #98AB22 #2298AB
tetradic
#AB2298 #AB7922 #22AB35 #2254AB
square
#AB2298 #AB7922 #22AB35 #2254AB
split-complementary
#AB2298 #54AB22 #22AB79
monochromatic
#450E3D #78186B #AB2298 #D734C0 #E167D0

Accessibility & contrast

On white

6.15
#AB2298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2298
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2298#FFFFFF#000000##FFFFFF
##AB22981.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#556895
Tritanopia (blue-blind)
#B4305D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2298;
/* rgb */ color: rgb(171, 34, 152);
/* oklch */ color: oklch(52.2% 0.208 334.7);
Tailwind
colors: {
  custom: {
    50: '#c86fb6',
    500: '#ab2298',
    950: '#000000',
  },
}
SCSS
$custom: #ab2298;
$custom-light: #c86fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2298",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 308.321,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.20845,
    "h": 334.7
  },
  "luminance": 0.12069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2298

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

Preview Lab → · Contrast checker → · Palette generator →

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