#AB56E7#AB56E7

#AB56E7 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.1% C 0.215 H 308.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AB56E7
RGBrgb(171, 86, 231)
HSLhsl(275, 75%, 62%)
HSVhsv(275, 63%, 91%)
CMYKcmyk(26%, 62.8%, 0%, 9.4%)
CIE-LABlab(53.04, 59.23, -59.79)
CIE-LCHlch(53.04, 84.16, 314.73°)
OKLaboklab(62.08% 0.1336 -0.1689)
OKLCHoklch(62.08% 0.215 308.4)
XYZxyz(34.5433, 21.0836, 77.8356)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E7 #92E756
analogous
#6256E7 #AB56E7 #E756DB
triadic
#AB56E7 #E7AB56 #56E7AB
tetradic
#AB56E7 #E76256 #92E756 #56DBE7
square
#AB56E7 #E76256 #92E756 #56DBE7
split-complementary
#AB56E7 #DBE756 #56E762
monochromatic
#6E18AA #9020DF #AB56E7 #C68CEF #E0C1F6

Accessibility & contrast

On white

4.03
#AB56E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#AB56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E7#FFFFFF#000000##000000
##AB56E71.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#3E80E4
Tritanopia (blue-blind)
#A27397
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab56e7;
/* rgb */ color: rgb(171, 86, 231);
/* oklch */ color: oklch(62.1% 0.215 308.4);
Tailwind
colors: {
  custom: {
    50: '#c88aef',
    500: '#ab56e7',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e7;
$custom-light: #c88aef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e7",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 275.172,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62083,
    "c": 0.21537,
    "h": 308.4
  },
  "luminance": 0.21083
}

Semantic roles & 50–950 ramp

primary
#AB56E7
secondary
#C8E7B2
accent
#D70E61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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