#AB2BAF#AB2BAF

#AB2BAF is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.217 H 326.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AB2BAF
RGBrgb(171, 43, 175)
HSLhsl(298, 61%, 43%)
HSVhsv(298, 75%, 69%)
CMYKcmyk(2.3%, 75.4%, 0%, 31.4%)
CIE-LABlab(43.48, 65.66, -42.82)
CIE-LCHlch(43.48, 78.38, 326.89°)
OKLaboklab(54.14% 0.1813 -0.119)
OKLCHoklch(54.14% 0.217 326.7)
XYZxyz(25.3959, 13.4826, 41.8139)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BAF #2FAF2B
analogous
#692BAF #AB2BAF #AF2B71
triadic
#AB2BAF #AFAB2B #2BAFAB
tetradic
#AB2BAF #AF692B #2FAF2B #2B71AF
square
#AB2BAF #AF692B #2FAF2B #2B71AF
split-complementary
#AB2BAF #71AF2B #2BAF69
monochromatic
#4B134D #7B1F7E #AB2BAF #CD46D1 #DA77DE

Accessibility & contrast

On white

5.68
#AB2BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB2BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BAF
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BAF#FFFFFF#000000##FFFFFF
##AB2BAF1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#4C6CAC
Tritanopia (blue-blind)
#B0426C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2baf;
/* rgb */ color: rgb(171, 43, 175);
/* oklch */ color: oklch(54.1% 0.217 326.7);
Tailwind
colors: {
  custom: {
    50: '#c873c7',
    500: '#ab2baf',
    950: '#000000',
  },
}
SCSS
$custom: #ab2baf;
$custom-light: #c873c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2baf",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 298.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54142,
    "c": 0.21683,
    "h": 326.7
  },
  "luminance": 0.13481
}

Semantic roles & 50–950 ramp

primary
#AB2BAF
secondary
#73C570
accent
#E44449
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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