#AB2FBA#AB2FBA

#AB2FBA is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.221 H 323.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AB2FBA
RGBrgb(171, 47, 186)
HSLhsl(294, 60%, 46%)
HSVhsv(294, 75%, 73%)
CMYKcmyk(8.1%, 74.7%, 0%, 27.1%)
CIE-LABlab(44.57, 66.27, -47.56)
CIE-LCHlch(44.57, 81.56, 324.33°)
OKLaboklab(55.13% 0.1772 -0.1328)
OKLCHoklch(55.13% 0.221 323.2)
XYZxyz(26.6732, 14.2377, 47.7881)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FBA #3EBA2F
analogous
#652FBA #AB2FBA #BA2F83
triadic
#AB2FBA #BAAB2F #2FBAAB
tetradic
#AB2FBA #BA652F #3EBA2F #2F83BA
square
#AB2FBA #BA652F #3EBA2F #2F83BA
split-complementary
#AB2FBA #83BA2F #2FBA65
monochromatic
#511658 #7E2389 #AB2FBA #C653D3 #D684E0

Accessibility & contrast

On white

5.46
#AB2FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AB2FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FBA
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FBA#FFFFFF#000000##FFFFFF
##AB2FBA1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#466EB7
Tritanopia (blue-blind)
#AE4973
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2fba;
/* rgb */ color: rgb(171, 47, 186);
/* oklch */ color: oklch(55.1% 0.221 323.2);
Tailwind
colors: {
  custom: {
    50: '#c875cf',
    500: '#ab2fba',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fba;
$custom-light: #c875cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fba",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 293.525,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55127,
    "c": 0.22148,
    "h": 323.2
  },
  "luminance": 0.14236
}

Semantic roles & 50–950 ramp

primary
#AB2FBA
secondary
#84C97C
accent
#E34556
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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