#AB50CA#AB50CA

#AB50CA is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.5% C 0.194 H 316.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB50CA
RGBrgb(171, 80, 202)
HSLhsl(285, 54%, 55%)
HSVhsv(285, 60%, 79%)
CMYKcmyk(15.3%, 60.4%, 0%, 20.8%)
CIE-LABlab(50.29, 55.92, -47.72)
CIE-LCHlch(50.29, 73.51, 319.53°)
OKLaboklab(59.54% 0.1412 -0.1335)
OKLCHoklch(59.54% 0.194 316.6)
XYZxyz(30.3223, 18.6606, 57.8703)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50CA #6FCA50
analogous
#6E50CA #AB50CA #CA50AC
triadic
#AB50CA #CAAB50 #50CAAB
tetradic
#AB50CA #CA6E50 #6FCA50 #50ACCA
square
#AB50CA #CA6E50 #6FCA50 #50ACCA
split-complementary
#AB50CA #ACCA50 #50CA6E
monochromatic
#65257A #8B33A9 #AB50CA #C27FD8 #D8AEE6

Accessibility & contrast

On white

4.44
#AB50CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AB50CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50CA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50CA#FFFFFF#000000##000000
##AB50CA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CE
Deuteranopia (green-blind)
#527AC7
Tritanopia (blue-blind)
#AA6586
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab50ca;
/* rgb */ color: rgb(171, 80, 202);
/* oklch */ color: oklch(59.5% 0.194 316.6);
Tailwind
colors: {
  custom: {
    50: '#c786db',
    500: '#ab50ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab50ca;
$custom-light: #c786db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50ca",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 202
  },
  "hsl": {
    "h": 284.754,
    "s": 53.509,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59538,
    "c": 0.19435,
    "h": 316.6
  },
  "luminance": 0.1866
}

Semantic roles & 50–950 ramp

primary
#AB50CA
secondary
#AED4A1
accent
#DD4B70
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB50CA

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

Preview Lab → · Contrast checker → · Palette generator →

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