#AB4FB2#AB4FB2

#AB4FB2 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.1% C 0.173 H 324.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AB4FB2
RGBrgb(171, 79, 178)
HSLhsl(296, 39%, 50%)
HSVhsv(296, 56%, 70%)
CMYKcmyk(3.9%, 55.6%, 0%, 30.2%)
CIE-LABlab(48.84, 51.71, -36.10)
CIE-LCHlch(48.84, 63.07, 325.08°)
OKLaboklab(58.07% 0.1411 -0.0997)
OKLCHoklch(58.07% 0.173 324.7)
XYZxyz(27.6258, 17.4657, 44.0269)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FB2 #56B24F
analogous
#7A4FB2 #AB4FB2 #B24F87
triadic
#AB4FB2 #B2AB4F #4FB2AB
tetradic
#AB4FB2 #B27A4F #56B24F #4F87B2
square
#AB4FB2 #B27A4F #56B24F #4F87B2
split-complementary
#AB4FB2 #87B24F #4FB27A
monochromatic
#5A295E #833C88 #AB4FB2 #BF7AC5 #D4A4D7

Accessibility & contrast

On white

4.67
#AB4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AB4FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FB2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FB2#FFFFFF#000000##FFFFFF
##AB4FB21.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#AE5C79
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4fb2;
/* rgb */ color: rgb(171, 79, 178);
/* oklch */ color: oklch(58.1% 0.173 324.7);
Tailwind
colors: {
  custom: {
    50: '#c685c9',
    500: '#ab4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fb2;
$custom-light: #c685c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fb2",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 295.758,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58071,
    "c": 0.17276,
    "h": 324.7
  },
  "luminance": 0.17464
}

Semantic roles & 50–950 ramp

primary
#AB4FB2
secondary
#9BC498
accent
#CF5961
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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