#AB5FBC#AB5FBC

#AB5FBC is a mid, vivid purple. Relative luminance 0.205; OKLCH L 60.8% C 0.157 H 320.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB5FBC
RGBrgb(171, 95, 188)
HSLhsl(289, 41%, 55%)
HSVhsv(289, 49%, 74%)
CMYKcmyk(9%, 49.5%, 0%, 26.3%)
CIE-LABlab(52.37, 45.60, -36.36)
CIE-LCHlch(52.37, 58.32, 321.43°)
OKLaboklab(60.83% 0.1202 -0.1006)
OKLCHoklch(60.83% 0.157 320.1)
XYZxyz(29.9628, 20.4743, 49.9408)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FBC #70BC5F
analogous
#7C5FBC #AB5FBC #BC5F9E
triadic
#AB5FBC #BCAB5F #5FBCAB
tetradic
#AB5FBC #BC7C5F #70BC5F #5F9EBC
square
#AB5FBC #BC7C5F #70BC5F #5F9EBC
split-complementary
#AB5FBC #9EBC5F #5FBC7C
monochromatic
#652F71 #8C419C #AB5FBC #C28ACE #D8B5E0

Accessibility & contrast

On white

4.12
#AB5FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AB5FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FBC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FBC#FFFFFF#000000##000000
##AB5FBC1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5078BF
Deuteranopia (green-blind)
#6680B9
Tritanopia (blue-blind)
#AC6C85
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab5fbc;
/* rgb */ color: rgb(171, 95, 188);
/* oklch */ color: oklch(60.8% 0.157 320.1);
Tailwind
colors: {
  custom: {
    50: '#c68fd0',
    500: '#ab5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fbc;
$custom-light: #c68fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fbc",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 289.032,
    "s": 40.969,
    "l": 55.49
  },
  "oklch": {
    "l": 0.6083,
    "c": 0.15677,
    "h": 320.1
  },
  "luminance": 0.20473
}

Semantic roles & 50–950 ramp

primary
#AB5FBC
secondary
#AFCFA8
accent
#D1576D
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130D14
muted
#827D82

Preview Lab

Preview with #AB5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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