#AB2FB8#AB2FB8

#AB2FB8 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.220 H 323.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AB2FB8
RGBrgb(171, 47, 184)
HSLhsl(294, 59%, 45%)
HSVhsv(294, 74%, 72%)
CMYKcmyk(7.1%, 74.5%, 0%, 27.8%)
CIE-LABlab(44.45, 65.92, -46.57)
CIE-LCHlch(44.45, 80.71, 324.76°)
OKLaboklab(55% 0.1774 -0.1299)
OKLCHoklch(55% 0.22 323.8)
XYZxyz(26.4621, 14.1533, 46.6762)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FB8 #3CB82F
analogous
#672FB8 #AB2FB8 #B82F80
triadic
#AB2FB8 #B8AB2F #2FB8AB
tetradic
#AB2FB8 #B8672F #3CB82F #2F80B8
square
#AB2FB8 #B8672F #3CB82F #2F80B8
split-complementary
#AB2FB8 #80B82F #2FB867
monochromatic
#501657 #7E2387 #AB2FB8 #C652D3 #D682DF

Accessibility & contrast

On white

5.48
#AB2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AB2FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FB8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FB8#FFFFFF#000000##FFFFFF
##AB2FB81.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#486EB5
Tritanopia (blue-blind)
#AE4872
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2fb8;
/* rgb */ color: rgb(171, 47, 184);
/* oklch */ color: oklch(55.0% 0.220 323.8);
Tailwind
colors: {
  custom: {
    50: '#c875ce',
    500: '#ab2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fb8;
$custom-light: #c875ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fb8",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 294.307,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55003,
    "c": 0.21988,
    "h": 323.8
  },
  "luminance": 0.14152
}

Semantic roles & 50–950 ramp

primary
#AB2FB8
secondary
#82C87B
accent
#E24554
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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