#AB51CF#AB51CF

#AB51CF is a mid, vivid purple. Relative luminance 0.190; OKLCH L 60.0% C 0.198 H 315.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB51CF
RGBrgb(171, 81, 207)
HSLhsl(283, 57%, 56%)
HSVhsv(283, 61%, 81%)
CMYKcmyk(17.4%, 60.9%, 0%, 18.8%)
CIE-LABlab(50.74, 56.47, -49.86)
CIE-LCHlch(50.74, 75.33, 318.56°)
OKLaboklab(59.96% 0.1401 -0.1398)
OKLCHoklch(59.96% 0.198 315.1)
XYZxyz(30.9977, 19.0488, 61.0633)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51CF #75CF51
analogous
#6C51CF #AB51CF #CF51B4
triadic
#AB51CF #CFAB51 #51CFAB
tetradic
#AB51CF #CF6C51 #75CF51 #51B4CF
square
#AB51CF #CF6C51 #75CF51 #51B4CF
split-complementary
#AB51CF #B4CF51 #51CF6C
monochromatic
#672482 #8D31B2 #AB51CF #C281DC #D9B1E9

Accessibility & contrast

On white

4.37
#AB51CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AB51CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51CF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51CF#FFFFFF#000000##000000
##AB51CF1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2874D3
Deuteranopia (green-blind)
#4F7BCC
Tritanopia (blue-blind)
#A86789
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab51cf;
/* rgb */ color: rgb(171, 81, 207);
/* oklch */ color: oklch(60.0% 0.198 315.1);
Tailwind
colors: {
  custom: {
    50: '#c787de',
    500: '#ab51cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab51cf;
$custom-light: #c787de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51cf",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 282.857,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59961,
    "c": 0.19788,
    "h": 315.1
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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