#AB4FBC#AB4FBC

#AB4FBC is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.182 H 321.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AB4FBC
RGBrgb(171, 79, 188)
HSLhsl(291, 45%, 52%)
HSVhsv(291, 58%, 74%)
CMYKcmyk(9%, 58%, 0%, 26.3%)
CIE-LABlab(49.35, 53.62, -41.12)
CIE-LCHlch(49.35, 67.57, 322.52°)
OKLaboklab(58.61% 0.1419 -0.1143)
OKLCHoklch(58.61% 0.182 321.2)
XYZxyz(28.6666, 17.8821, 49.5088)
Luminance0.1788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FBC #60BC4F
analogous
#744FBC #AB4FBC #BC4F97
triadic
#AB4FBC #BCAB4F #4FBCAB
tetradic
#AB4FBC #BC744F #60BC4F #4F97BC
square
#AB4FBC #BC744F #60BC4F #4F97BC
split-complementary
#AB4FBC #97BC4F #4FBC74
monochromatic
#5F2869 #873995 #AB4FBC #C07BCD #D5A8DE

Accessibility & contrast

On white

4.59
#AB4FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AB4FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FBC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FBC#FFFFFF#000000##FFFFFF
##AB4FBC1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396FBF
Deuteranopia (green-blind)
#5A79B9
Tritanopia (blue-blind)
#AD5F7E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4fbc;
/* rgb */ color: rgb(171, 79, 188);
/* oklch */ color: oklch(58.6% 0.182 321.2);
Tailwind
colors: {
  custom: {
    50: '#c785d0',
    500: '#ab4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fbc;
$custom-light: #c785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fbc",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 290.642,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58611,
    "c": 0.18221,
    "h": 321.2
  },
  "luminance": 0.17881
}

Semantic roles & 50–950 ramp

primary
#AB4FBC
secondary
#A3CB9C
accent
#D55367
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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