#AB5DCF#AB5DCF

#AB5DCF is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.6% C 0.180 H 313.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AB5DCF
RGBrgb(171, 93, 207)
HSLhsl(281, 54%, 59%)
HSVhsv(281, 55%, 81%)
CMYKcmyk(17.4%, 55.1%, 0%, 18.8%)
CIE-LABlab(52.94, 50.56, -46.36)
CIE-LCHlch(52.94, 68.60, 317.49°)
OKLaboklab(61.57% 0.1249 -0.1296)
OKLCHoklch(61.57% 0.18 313.9)
XYZxyz(31.9696, 20.9925, 61.3873)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DCF #81CF5D
analogous
#725DCF #AB5DCF #CF5DBA
triadic
#AB5DCF #CFAB5D #5DCFAB
tetradic
#AB5DCF #CF725D #81CF5D #5DBACF
square
#AB5DCF #CF725D #81CF5D #5DBACF
split-complementary
#AB5DCF #BACF5D #5DCF72
monochromatic
#6B2989 #8F37B8 #AB5DCF #C38CDD #DCBBEB

Accessibility & contrast

On white

4.04
#AB5DCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AB5DCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DCF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DCF#FFFFFF#000000##000000
##AB5DCF1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7AD3
Deuteranopia (green-blind)
#5A80CC
Tritanopia (blue-blind)
#A8708D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5dcf;
/* rgb */ color: rgb(171, 93, 207);
/* oklch */ color: oklch(61.6% 0.180 313.9);
Tailwind
colors: {
  custom: {
    50: '#c78ede',
    500: '#ab5dcf',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dcf;
$custom-light: #c78ede;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dcf",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 281.053,
    "s": 54.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61565,
    "c": 0.17998,
    "h": 313.9
  },
  "luminance": 0.20992
}

Semantic roles & 50–950 ramp

primary
#AB5DCF
secondary
#BCDAAD
accent
#DE4A79
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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