#AB56DF#AB56DF

#AB56DF is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.6% C 0.207 H 310.3°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB56DF
RGBrgb(171, 86, 223)
HSLhsl(277, 68%, 61%)
HSVhsv(277, 61%, 87%)
CMYKcmyk(23.3%, 61.4%, 0%, 12.5%)
CIE-LABlab(52.56, 57.48, -56.06)
CIE-LCHlch(52.56, 80.29, 315.71°)
OKLaboklab(61.58% 0.1339 -0.1579)
OKLCHoklch(61.58% 0.207 310.3)
XYZxyz(33.4391, 20.6419, 72.0205)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56DF #8ADF56
analogous
#6656DF #AB56DF #DF56CF
triadic
#AB56DF #DFAB56 #56DFAB
tetradic
#AB56DF #DF6656 #8ADF56 #56CFDF
square
#AB56DF #DF6656 #8ADF56 #56CFDF
split-complementary
#AB56DF #CFDF56 #56DF66
monochromatic
#6D1E9D #9027D0 #AB56DF #C589E9 #DEBDF2

Accessibility & contrast

On white

4.10
#AB56DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AB56DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56DF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56DF#FFFFFF#000000##000000
##AB56DF1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#177AE3
Deuteranopia (green-blind)
#467FDC
Tritanopia (blue-blind)
#A47193
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab56df;
/* rgb */ color: rgb(171, 86, 223);
/* oklch */ color: oklch(61.6% 0.207 310.3);
Tailwind
colors: {
  custom: {
    50: '#c88aea',
    500: '#ab56df',
    950: '#000000',
  },
}
SCSS
$custom: #ab56df;
$custom-light: #c88aea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56df",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 223
  },
  "hsl": {
    "h": 277.226,
    "s": 68.159,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61576,
    "c": 0.20708,
    "h": 310.3
  },
  "luminance": 0.20641
}

Semantic roles & 50–950 ramp

primary
#AB56DF
secondary
#C2E2AE
accent
#D0155C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56DF

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

Preview Lab → · Contrast checker → · Palette generator →

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