#AB56F5#AB56F5

#AB56F5 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 63.0% C 0.230 H 305.3°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AB56F5
RGBrgb(171, 86, 245)
HSLhsl(272, 89%, 65%)
HSVhsv(272, 65%, 96%)
CMYKcmyk(30.2%, 64.9%, 0%, 3.9%)
CIE-LABlab(53.93, 62.35, -66.20)
CIE-LCHlch(53.93, 90.94, 313.28°)
OKLaboklab(63.01% 0.1327 -0.1877)
OKLCHoklch(63.01% 0.23 305.3)
XYZxyz(36.6002, 21.9063, 88.6687)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56F5 #A0F556
analogous
#5B56F5 #AB56F5 #F556F0
triadic
#AB56F5 #F5AB56 #56F5AB
tetradic
#AB56F5 #F55B56 #A0F556 #56F0F5
square
#AB56F5 #F55B56 #A0F556 #56F0F5
split-complementary
#AB56F5 #F0F556 #56F55B
monochromatic
#6F0CC5 #8E1CF2 #AB56F5 #C890F8 #E4CAFC

Accessibility & contrast

On white

3.90
#AB56F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#AB56F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56F5
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56F5#FFFFFF#000000##000000
##AB56F51.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFA
Deuteranopia (green-blind)
#2881F2
Tritanopia (blue-blind)
#9E789E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab56f5;
/* rgb */ color: rgb(171, 86, 245);
/* oklch */ color: oklch(63.0% 0.230 305.3);
Tailwind
colors: {
  custom: {
    50: '#c98bf9',
    500: '#ab56f5',
    950: '#000000',
  },
}
SCSS
$custom: #ab56f5;
$custom-light: #c98bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56f5",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 245
  },
  "hsl": {
    "h": 272.075,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63005,
    "c": 0.22988,
    "h": 305.3
  },
  "luminance": 0.21906
}

Semantic roles & 50–950 ramp

primary
#AB56F5
secondary
#D2EFB8
accent
#E5006B
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56F5

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

Preview Lab → · Contrast checker → · Palette generator →

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