#AB56FD#AB56FD

#AB56FD is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.5% C 0.238 H 303.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AB56FD
RGBrgb(171, 86, 253)
HSLhsl(271, 98%, 66%)
HSVhsv(271, 66%, 99%)
CMYKcmyk(32.4%, 66%, 0%, 0.8%)
CIE-LABlab(54.45, 64.17, -69.80)
CIE-LCHlch(54.45, 94.81, 312.59°)
OKLaboklab(63.55% 0.1319 -0.1983)
OKLCHoklch(63.55% 0.238 303.6)
XYZxyz(37.8479, 22.4054, 95.2402)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56FD #A8FD56
analogous
#5856FD #AB56FD #FD56FB
triadic
#AB56FD #FDAB56 #56FDAB
tetradic
#AB56FD #FD5856 #A8FD56 #56FBFD
square
#AB56FD #FD5856 #A8FD56 #56FBFD
split-complementary
#AB56FD #FBFD56 #56FD58
monochromatic
#6E03D6 #8D1AFC #AB56FD #C992FE #E7CFFE

Accessibility & contrast

On white

3.83
#AB56FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#AB56FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56FD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56FD#FFFFFF#000000##000000
##AB56FD1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#1182F9
Tritanopia (blue-blind)
#9B7BA3
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab56fd;
/* rgb */ color: rgb(171, 86, 253);
/* oklch */ color: oklch(63.5% 0.238 303.6);
Tailwind
colors: {
  custom: {
    50: '#c98bff',
    500: '#ab56fd',
    950: '#000000',
  },
}
SCSS
$custom: #ab56fd;
$custom-light: #c98bff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56fd",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 253
  },
  "hsl": {
    "h": 270.539,
    "s": 97.661,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6355,
    "c": 0.23815,
    "h": 303.6
  },
  "luminance": 0.22405
}

Semantic roles & 50–950 ramp

primary
#AB56FD
secondary
#D7F2BC
accent
#E60071
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C18
muted
#827D86

Preview Lab

Preview with #AB56FD

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

Preview Lab → · Contrast checker → · Palette generator →

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