#AB4FBB#AB4FBB

#AB4FBB is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.6% C 0.181 H 321.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AB4FBB
RGBrgb(171, 79, 187)
HSLhsl(291, 44%, 52%)
HSVhsv(291, 58%, 73%)
CMYKcmyk(8.6%, 57.8%, 0%, 26.7%)
CIE-LABlab(49.30, 53.43, -40.62)
CIE-LCHlch(49.30, 67.11, 322.76°)
OKLaboklab(58.56% 0.1419 -0.1128)
OKLCHoklch(58.56% 0.181 321.5)
XYZxyz(28.5592, 17.8391, 48.9430)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FBB #5FBB4F
analogous
#754FBB #AB4FBB #BB4F95
triadic
#AB4FBB #BBAB4F #4FBBAB
tetradic
#AB4FBB #BB754F #5FBB4F #4F95BB
square
#AB4FBB #BB754F #5FBB4F #4F95BB
split-complementary
#AB4FBB #95BB4F #4FBB75
monochromatic
#5E2868 #863994 #AB4FBB #C07BCC #D5A7DD

Accessibility & contrast

On white

4.60
#AB4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AB4FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FBB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FBB#FFFFFF#000000##FFFFFF
##AB4FBB1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBE
Deuteranopia (green-blind)
#5B79B8
Tritanopia (blue-blind)
#AD5F7E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4fbb;
/* rgb */ color: rgb(171, 79, 187);
/* oklch */ color: oklch(58.6% 0.181 321.5);
Tailwind
colors: {
  custom: {
    50: '#c785d0',
    500: '#ab4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fbb;
$custom-light: #c785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fbb",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 291.111,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58556,
    "c": 0.18125,
    "h": 321.5
  },
  "luminance": 0.17838
}

Semantic roles & 50–950 ramp

primary
#AB4FBB
secondary
#A2CA9B
accent
#D45467
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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