#AB56E1#AB56E1

#AB56E1 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.7% C 0.209 H 309.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB56E1
RGBrgb(171, 86, 225)
HSLhsl(277, 70%, 61%)
HSVhsv(277, 62%, 88%)
CMYKcmyk(24%, 61.8%, 0%, 11.8%)
CIE-LABlab(52.68, 57.91, -57.00)
CIE-LCHlch(52.68, 81.26, 315.46°)
OKLaboklab(61.7% 0.1339 -0.1607)
OKLCHoklch(61.7% 0.209 309.8)
XYZxyz(33.7104, 20.7504, 73.4490)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E1 #8CE156
analogous
#6556E1 #AB56E1 #E156D1
triadic
#AB56E1 #E1AB56 #56E1AB
tetradic
#AB56E1 #E16556 #8CE156 #56D1E1
square
#AB56E1 #E16556 #8CE156 #56D1E1
split-complementary
#AB56E1 #D1E156 #56E165
monochromatic
#6D1CA0 #9026D4 #AB56E1 #C58AEA #DFBEF3

Accessibility & contrast

On white

4.08
#AB56E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AB56E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E1
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E1#FFFFFF#000000##000000
##AB56E11.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#117AE5
Deuteranopia (green-blind)
#447FDE
Tritanopia (blue-blind)
#A47194
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab56e1;
/* rgb */ color: rgb(171, 86, 225);
/* oklch */ color: oklch(61.7% 0.209 309.8);
Tailwind
colors: {
  custom: {
    50: '#c88aeb',
    500: '#ab56e1',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e1;
$custom-light: #c88aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e1",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 225
  },
  "hsl": {
    "h": 276.691,
    "s": 69.849,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61701,
    "c": 0.20915,
    "h": 309.8
  },
  "luminance": 0.2075
}

Semantic roles & 50–950 ramp

primary
#AB56E1
secondary
#C4E4AF
accent
#D2145E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56E1

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

Preview Lab → · Contrast checker → · Palette generator →

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