#AB2FAF#AB2FAF

#AB2FAF is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.213 H 326.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AB2FAF
RGBrgb(171, 47, 175)
HSLhsl(298, 58%, 44%)
HSVhsv(298, 73%, 69%)
CMYKcmyk(2.3%, 73.1%, 0%, 31.4%)
CIE-LABlab(43.93, 64.38, -42.11)
CIE-LCHlch(43.93, 76.93, 326.81°)
OKLaboklab(54.46% 0.1777 -0.1169)
OKLCHoklch(54.46% 0.213 326.7)
XYZxyz(25.5485, 13.7879, 41.8648)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FAF #33AF2F
analogous
#6B2FAF #AB2FAF #AF2F73
triadic
#AB2FAF #AFAB2F #2FAFAB
tetradic
#AB2FAF #AF6B2F #33AF2F #2F73AF
square
#AB2FAF #AF6B2F #33AF2F #2F73AF
split-complementary
#AB2FAF #73AF2F #2FAF6B
monochromatic
#4D154F #7C227F #AB2FAF #CB4CCF #D97CDC

Accessibility & contrast

On white

5.59
#AB2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AB2FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FAF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FAF#FFFFFF#000000##FFFFFF
##AB2FAF1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5EB3
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#B0446D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2faf;
/* rgb */ color: rgb(171, 47, 175);
/* oklch */ color: oklch(54.5% 0.213 326.7);
Tailwind
colors: {
  custom: {
    50: '#c874c7',
    500: '#ab2faf',
    950: '#000000',
  },
}
SCSS
$custom: #ab2faf;
$custom-light: #c874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2faf",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 298.125,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5446,
    "c": 0.21273,
    "h": 326.7
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#AB2FAF
secondary
#78C475
accent
#E1474C
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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