#AB56E3#AB56E3

#AB56E3 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.8% C 0.211 H 309.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AB56E3
RGBrgb(171, 86, 227)
HSLhsl(276, 72%, 61%)
HSVhsv(276, 62%, 89%)
CMYKcmyk(24.7%, 62.1%, 0%, 11%)
CIE-LABlab(52.80, 58.35, -57.93)
CIE-LCHlch(52.80, 82.22, 315.20°)
OKLaboklab(61.83% 0.1338 -0.1634)
OKLCHoklch(61.83% 0.211 309.3)
XYZxyz(33.9848, 20.8602, 74.8943)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E3 #8EE356
analogous
#6556E3 #AB56E3 #E356D5
triadic
#AB56E3 #E3AB56 #56E3AB
tetradic
#AB56E3 #E36556 #8EE356 #56D5E3
square
#AB56E3 #E36556 #8EE356 #56D5E3
split-complementary
#AB56E3 #D5E356 #56E365
monochromatic
#6D1BA4 #9024D8 #AB56E3 #C58BEC #DFBFF4

Accessibility & contrast

On white

4.06
#AB56E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AB56E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E3#FFFFFF#000000##000000
##AB56E31.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#097AE7
Deuteranopia (green-blind)
#427FE0
Tritanopia (blue-blind)
#A37295
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab56e3;
/* rgb */ color: rgb(171, 86, 227);
/* oklch */ color: oklch(61.8% 0.211 309.3);
Tailwind
colors: {
  custom: {
    50: '#c88aec',
    500: '#ab56e3',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e3;
$custom-light: #c88aec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e3",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 276.17,
    "s": 71.574,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61827,
    "c": 0.21123,
    "h": 309.3
  },
  "luminance": 0.2086
}

Semantic roles & 50–950 ramp

primary
#AB56E3
secondary
#C5E5B0
accent
#D4125F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB56E3

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

Preview Lab → · Contrast checker → · Palette generator →

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