#AB50C8#AB50C8

#AB50C8 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.4% C 0.192 H 317.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB50C8
RGBrgb(171, 80, 200)
HSLhsl(286, 52%, 55%)
HSVhsv(286, 60%, 78%)
CMYKcmyk(14.5%, 60%, 0%, 21.6%)
CIE-LABlab(50.18, 55.52, -46.74)
CIE-LCHlch(50.18, 72.58, 319.90°)
OKLaboklab(59.42% 0.1412 -0.1307)
OKLCHoklch(59.42% 0.192 317.2)
XYZxyz(30.0871, 18.5665, 56.6312)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50C8 #6DC850
analogous
#6F50C8 #AB50C8 #C850A9
triadic
#AB50C8 #C8AB50 #50C8AB
tetradic
#AB50C8 #C86F50 #6DC850 #50A9C8
square
#AB50C8 #C86F50 #6DC850 #50A9C8
split-complementary
#AB50C8 #A9C850 #50C86F
monochromatic
#642678 #8B34A6 #AB50C8 #C17FD7 #D8ADE5

Accessibility & contrast

On white

4.46
#AB50C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AB50C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50C8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50C8#FFFFFF#000000##000000
##AB50C81.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F72CC
Deuteranopia (green-blind)
#537AC5
Tritanopia (blue-blind)
#AA6485
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab50c8;
/* rgb */ color: rgb(171, 80, 200);
/* oklch */ color: oklch(59.4% 0.192 317.2);
Tailwind
colors: {
  custom: {
    50: '#c786d9',
    500: '#ab50c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab50c8;
$custom-light: #c786d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50c8",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 285.5,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59421,
    "c": 0.19238,
    "h": 317.2
  },
  "luminance": 0.18565
}

Semantic roles & 50–950 ramp

primary
#AB50C8
secondary
#ADD3A1
accent
#DC4C6F
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB50C8

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

Preview Lab → · Contrast checker → · Palette generator →

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