#AB50CB#AB50CB

#AB50CB is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.6% C 0.195 H 316.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AB50CB
RGBrgb(171, 80, 203)
HSLhsl(284, 54%, 55%)
HSVhsv(284, 61%, 80%)
CMYKcmyk(15.8%, 60.6%, 0%, 20.4%)
CIE-LABlab(50.34, 56.13, -48.20)
CIE-LCHlch(50.34, 73.98, 319.35°)
OKLaboklab(59.6% 0.1413 -0.1349)
OKLCHoklch(59.6% 0.195 316.3)
XYZxyz(30.4411, 18.7081, 58.4958)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50CB #70CB50
analogous
#6D50CB #AB50CB #CB50AE
triadic
#AB50CB #CBAB50 #50CBAB
tetradic
#AB50CB #CB6D50 #70CB50 #50AECB
square
#AB50CB #CB6D50 #70CB50 #50AECB
split-complementary
#AB50CB #AECB50 #50CB6D
monochromatic
#65257C #8C33AB #AB50CB #C27FD9 #D8AEE7

Accessibility & contrast

On white

4.43
#AB50CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AB50CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50CB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50CB#FFFFFF#000000##000000
##AB50CB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B72CF
Deuteranopia (green-blind)
#517AC8
Tritanopia (blue-blind)
#A96586
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab50cb;
/* rgb */ color: rgb(171, 80, 203);
/* oklch */ color: oklch(59.6% 0.195 316.3);
Tailwind
colors: {
  custom: {
    50: '#c786db',
    500: '#ab50cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab50cb;
$custom-light: #c786db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50cb",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 203
  },
  "hsl": {
    "h": 284.39,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59597,
    "c": 0.19534,
    "h": 316.3
  },
  "luminance": 0.18707
}

Semantic roles & 50–950 ramp

primary
#AB50CB
secondary
#AFD5A2
accent
#DE4A71
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB50CB

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

Preview Lab → · Contrast checker → · Palette generator →

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