#AB50B1#AB50B1

#AB50B1 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.1% C 0.170 H 325.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB50B1
RGBrgb(171, 80, 177)
HSLhsl(296, 38%, 50%)
HSVhsv(296, 55%, 69%)
CMYKcmyk(3.4%, 54.8%, 0%, 30.6%)
CIE-LABlab(48.97, 51.04, -35.31)
CIE-LCHlch(48.97, 62.07, 325.33°)
OKLaboklab(58.15% 0.1396 -0.0975)
OKLCHoklch(58.15% 0.17 325.1)
XYZxyz(27.5984, 17.5711, 43.5243)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50B1 #56B150
analogous
#7B50B1 #AB50B1 #B15086
triadic
#AB50B1 #B1AB50 #50B1AB
tetradic
#AB50B1 #B17B50 #56B150 #5086B1
square
#AB50B1 #B17B50 #56B150 #5086B1
split-complementary
#AB50B1 #86B150 #50B17B
monochromatic
#5A295D #833C87 #AB50B1 #BF7AC4 #D4A5D7

Accessibility & contrast

On white

4.65
#AB50B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AB50B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB50B1
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50B1#FFFFFF#000000##FFFFFF
##AB50B11.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436DB4
Deuteranopia (green-blind)
#6178AE
Tritanopia (blue-blind)
#AF5C79
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab50b1;
/* rgb */ color: rgb(171, 80, 177);
/* oklch */ color: oklch(58.1% 0.170 325.1);
Tailwind
colors: {
  custom: {
    50: '#c685c8',
    500: '#ab50b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab50b1;
$custom-light: #c685c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50b1",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 177
  },
  "hsl": {
    "h": 296.289,
    "s": 38.34,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.17027,
    "h": 325.1
  },
  "luminance": 0.1757
}

Semantic roles & 50–950 ramp

primary
#AB50B1
secondary
#9BC499
accent
#CE5A61
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB50B1

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

Preview Lab → · Contrast checker → · Palette generator →

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