#AB56ED#AB56ED

#AB56ED is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.5% C 0.222 H 307.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AB56ED
RGBrgb(171, 86, 237)
HSLhsl(274, 81%, 63%)
HSVhsv(274, 64%, 93%)
CMYKcmyk(27.8%, 63.7%, 0%, 7.1%)
CIE-LABlab(53.42, 60.56, -62.56)
CIE-LCHlch(53.42, 87.07, 314.07°)
OKLaboklab(62.47% 0.1333 -0.177)
OKLCHoklch(62.47% 0.222 307)
XYZxyz(35.4052, 21.4283, 82.3753)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56ED #98ED56
analogous
#5F56ED #AB56ED #ED56E3
triadic
#AB56ED #EDAB56 #56EDAB
tetradic
#AB56ED #ED5F56 #98ED56 #56E3ED
square
#AB56ED #ED5F56 #98ED56 #56E3ED
split-complementary
#AB56ED #E3ED56 #56ED5F
monochromatic
#6E13B5 #901FE7 #AB56ED #C68DF3 #E2C5F9

Accessibility & contrast

On white

3.97
#AB56ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#AB56ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56ED
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56ED#FFFFFF#000000##000000
##AB56ED1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF2
Deuteranopia (green-blind)
#3680EA
Tritanopia (blue-blind)
#A0769A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab56ed;
/* rgb */ color: rgb(171, 86, 237);
/* oklch */ color: oklch(62.5% 0.222 307.0);
Tailwind
colors: {
  custom: {
    50: '#c88af4',
    500: '#ab56ed',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ed;
$custom-light: #c88af4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ed",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 237
  },
  "hsl": {
    "h": 273.775,
    "s": 80.749,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62473,
    "c": 0.22158,
    "h": 307
  },
  "luminance": 0.21428
}

Semantic roles & 50–950 ramp

primary
#AB56ED
secondary
#CCEAB4
accent
#DD0865
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56ED

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

Preview Lab → · Contrast checker → · Palette generator →

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