#AB2FB2#AB2FB2

#AB2FB2 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.215 H 325.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AB2FB2
RGBrgb(171, 47, 178)
HSLhsl(297, 58%, 44%)
HSVhsv(297, 74%, 70%)
CMYKcmyk(3.9%, 73.6%, 0%, 30.2%)
CIE-LABlab(44.10, 64.89, -43.61)
CIE-LCHlch(44.10, 78.18, 326.10°)
OKLaboklab(54.64% 0.1776 -0.1213)
OKLCHoklch(54.64% 0.215 325.7)
XYZxyz(25.8464, 13.9070, 43.4338)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FB2 #36B22F
analogous
#6A2FB2 #AB2FB2 #B22F78
triadic
#AB2FB2 #B2AB2F #2FB2AB
tetradic
#AB2FB2 #B26A2F #36B22F #2F78B2
square
#AB2FB2 #B26A2F #36B22F #2F78B2
split-complementary
#AB2FB2 #78B22F #2FB26A
monochromatic
#4E1551 #7C2282 #AB2FB2 #C94ED0 #D87EDD

Accessibility & contrast

On white

5.55
#AB2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AB2FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FB2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FB2#FFFFFF#000000##FFFFFF
##AB2FB21.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025EB6
Deuteranopia (green-blind)
#4C6DAF
Tritanopia (blue-blind)
#AF456E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2fb2;
/* rgb */ color: rgb(171, 47, 178);
/* oklch */ color: oklch(54.6% 0.215 325.7);
Tailwind
colors: {
  custom: {
    50: '#c875c9',
    500: '#ab2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fb2;
$custom-light: #c875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fb2",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 296.794,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54639,
    "c": 0.21509,
    "h": 325.7
  },
  "luminance": 0.13905
}

Semantic roles & 50–950 ramp

primary
#AB2FB2
secondary
#7BC677
accent
#E1464F
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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