#AB50CF#AB50CF

#AB50CF is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.8% C 0.199 H 315.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB50CF
RGBrgb(171, 80, 207)
HSLhsl(283, 57%, 56%)
HSVhsv(283, 61%, 81%)
CMYKcmyk(17.4%, 61.4%, 0%, 18.8%)
CIE-LABlab(50.57, 56.95, -50.13)
CIE-LCHlch(50.57, 75.87, 318.64°)
OKLaboklab(59.84% 0.1413 -0.1406)
OKLCHoklch(59.84% 0.199 315.1)
XYZxyz(30.9239, 18.9013, 61.0387)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50CF #74CF50
analogous
#6C50CF #AB50CF #CF50B4
triadic
#AB50CF #CFAB50 #50CFAB
tetradic
#AB50CF #CF6C50 #74CF50 #50B4CF
square
#AB50CF #CF6C50 #74CF50 #50B4CF
split-complementary
#AB50CF #B4CF50 #50CF6C
monochromatic
#672381 #8D31B1 #AB50CF #C280DC #D9B0E9

Accessibility & contrast

On white

4.39
#AB50CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AB50CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50CF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50CF#FFFFFF#000000##000000
##AB50CF1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2573D3
Deuteranopia (green-blind)
#4E7BCC
Tritanopia (blue-blind)
#A86788
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab50cf;
/* rgb */ color: rgb(171, 80, 207);
/* oklch */ color: oklch(59.8% 0.199 315.1);
Tailwind
colors: {
  custom: {
    50: '#c786de',
    500: '#ab50cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab50cf;
$custom-light: #c786de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50cf",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 207
  },
  "hsl": {
    "h": 282.992,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59836,
    "c": 0.1993,
    "h": 315.1
  },
  "luminance": 0.189
}

Semantic roles & 50–950 ramp

primary
#AB50CF
secondary
#B2D8A3
accent
#E04873
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB50CF

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

Preview Lab → · Contrast checker → · Palette generator →

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