#AB4FB8#AB4FB8

#AB4FB8 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.4% C 0.178 H 322.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AB4FB8
RGBrgb(171, 79, 184)
HSLhsl(293, 43%, 52%)
HSVhsv(293, 57%, 72%)
CMYKcmyk(7.1%, 57.1%, 0%, 27.8%)
CIE-LABlab(49.14, 52.85, -39.12)
CIE-LCHlch(49.14, 65.75, 323.49°)
OKLaboklab(58.39% 0.1416 -0.1085)
OKLCHoklch(58.39% 0.178 322.5)
XYZxyz(28.2414, 17.7120, 47.2693)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FB8 #5CB84F
analogous
#774FB8 #AB4FB8 #B84F91
triadic
#AB4FB8 #B8AB4F #4FB8AB
tetradic
#AB4FB8 #B8774F #5CB84F #4F91B8
square
#AB4FB8 #B8774F #5CB84F #4F91B8
split-complementary
#AB4FB8 #91B84F #4FB877
monochromatic
#5D2864 #853A90 #AB4FB8 #C07BCA #D5A6DB

Accessibility & contrast

On white

4.62
#AB4FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AB4FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FB8
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FB8#FFFFFF#000000##FFFFFF
##AB4FB81.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBB
Deuteranopia (green-blind)
#5C78B5
Tritanopia (blue-blind)
#AD5E7C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4fb8;
/* rgb */ color: rgb(171, 79, 184);
/* oklch */ color: oklch(58.4% 0.178 322.5);
Tailwind
colors: {
  custom: {
    50: '#c785ce',
    500: '#ab4fb8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fb8;
$custom-light: #c785ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fb8",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 292.571,
    "s": 42.51,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58391,
    "c": 0.17839,
    "h": 322.5
  },
  "luminance": 0.17711
}

Semantic roles & 50–950 ramp

primary
#AB4FB8
secondary
#A0C89A
accent
#D25665
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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