#AB4FCB#AB4FCB

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

Color values

HEX#AB4FCB
RGBrgb(171, 79, 203)
HSLhsl(285, 54%, 55%)
HSVhsv(285, 61%, 80%)
CMYKcmyk(15.8%, 61.1%, 0%, 20.4%)
CIE-LABlab(50.17, 56.60, -48.48)
CIE-LCHlch(50.17, 74.52, 319.42°)
OKLaboklab(59.47% 0.1425 -0.1357)
OKLCHoklch(59.47% 0.197 316.4)
XYZxyz(30.3684, 18.5628, 58.4716)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FCB #6FCB4F
analogous
#6D4FCB #AB4FCB #CB4FAD
triadic
#AB4FCB #CBAB4F #4FCBAB
tetradic
#AB4FCB #CB6D4F #6FCB4F #4FADCB
square
#AB4FCB #CB6D4F #6FCB4F #4FADCB
split-complementary
#AB4FCB #ADCB4F #4FCB6D
monochromatic
#65247B #8B32AA #AB4FCB #C27ED9 #D8ADE7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4FCB#FFFFFF#000000##000000
##AB4FCB1.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)
#2972CF
Deuteranopia (green-blind)
#507AC8
Tritanopia (blue-blind)
#A96586
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab4fcb;
/* rgb */ color: rgb(171, 79, 203);
/* oklch */ color: oklch(59.5% 0.197 316.4);
Tailwind
colors: {
  custom: {
    50: '#c786db',
    500: '#ab4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fcb;
$custom-light: #c786db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fcb",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 284.516,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59472,
    "c": 0.19677,
    "h": 316.4
  },
  "luminance": 0.18562
}

Semantic roles & 50–950 ramp

primary
#AB4FCB
secondary
#AED5A1
accent
#DE4A70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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