#AB2FBC#AB2FBC

#AB2FBC is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.223 H 322.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AB2FBC
RGBrgb(171, 47, 188)
HSLhsl(293, 60%, 46%)
HSVhsv(293, 75%, 74%)
CMYKcmyk(9%, 75%, 0%, 26.3%)
CIE-LABlab(44.69, 66.62, -48.53)
CIE-LCHlch(44.69, 82.42, 323.93°)
OKLaboklab(55.25% 0.1771 -0.1357)
OKLCHoklch(55.25% 0.223 322.5)
XYZxyz(26.8873, 14.3234, 48.9157)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FBC #40BC2F
analogous
#642FBC #AB2FBC #BC2F86
triadic
#AB2FBC #BCAB2F #2FBCAB
tetradic
#AB2FBC #BC642F #40BC2F #2F86BC
square
#AB2FBC #BC642F #40BC2F #2F86BC
split-complementary
#AB2FBC #86BC2F #2FBC64
monochromatic
#52175A #7E238B #AB2FBC #C554D4 #D585E0

Accessibility & contrast

On white

5.43
#AB2FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AB2FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FBC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FBC#FFFFFF#000000##FFFFFF
##AB2FBC1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#456EB9
Tritanopia (blue-blind)
#AD4A74
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab2fbc;
/* rgb */ color: rgb(171, 47, 188);
/* oklch */ color: oklch(55.3% 0.223 322.5);
Tailwind
colors: {
  custom: {
    50: '#c875d1',
    500: '#ab2fbc',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fbc;
$custom-light: #c875d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fbc",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 292.766,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55252,
    "c": 0.22309,
    "h": 322.5
  },
  "luminance": 0.14322
}

Semantic roles & 50–950 ramp

primary
#AB2FBC
secondary
#86CA7D
accent
#E34558
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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