#AB56DA#AB56DA

#AB56DA is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.3% C 0.202 H 311.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB56DA
RGBrgb(171, 86, 218)
HSLhsl(279, 64%, 60%)
HSVhsv(279, 61%, 85%)
CMYKcmyk(21.6%, 60.6%, 0%, 14.5%)
CIE-LABlab(52.26, 56.40, -53.70)
CIE-LCHlch(52.26, 77.87, 316.40°)
OKLaboklab(61.27% 0.134 -0.151)
OKLCHoklch(61.27% 0.202 311.6)
XYZxyz(32.7750, 20.3762, 68.5225)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56DA #85DA56
analogous
#6956DA #AB56DA #DA56C7
triadic
#AB56DA #DAAB56 #56DAAB
tetradic
#AB56DA #DA6956 #85DA56 #56C7DA
square
#AB56DA #DA6956 #85DA56 #56C7DA
split-complementary
#AB56DA #C7DA56 #56DA69
monochromatic
#6C2195 #902CC7 #AB56DA #C488E5 #DDBAF0

Accessibility & contrast

On white

4.14
#AB56DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AB56DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56DA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56DA#FFFFFF#000000##000000
##AB56DA1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2278DE
Deuteranopia (green-blind)
#4B7ED7
Tritanopia (blue-blind)
#A66F90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab56da;
/* rgb */ color: rgb(171, 86, 218);
/* oklch */ color: oklch(61.3% 0.202 311.6);
Tailwind
colors: {
  custom: {
    50: '#c78ae6',
    500: '#ab56da',
    950: '#000000',
  },
}
SCSS
$custom: #ab56da;
$custom-light: #c78ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56da",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 218
  },
  "hsl": {
    "h": 278.636,
    "s": 64.078,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61266,
    "c": 0.20191,
    "h": 311.6
  },
  "luminance": 0.20375
}

Semantic roles & 50–950 ramp

primary
#AB56DA
secondary
#BFE0AC
accent
#E7417C
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56DA

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

Preview Lab → · Contrast checker → · Palette generator →

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