#AB56FF#AB56FF

#AB56FF is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.7% C 0.240 H 303.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB56FF
RGBrgb(171, 86, 255)
HSLhsl(270, 100%, 67%)
HSVhsv(270, 66%, 100%)
CMYKcmyk(32.9%, 66.3%, 0%, 0%)
CIE-LABlab(54.59, 64.62, -70.69)
CIE-LCHlch(54.59, 95.78, 312.43°)
OKLaboklab(63.69% 0.1317 -0.2009)
OKLCHoklch(63.69% 0.24 303.2)
XYZxyz(38.1682, 22.5335, 96.9270)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56FF #AAFF56
analogous
#5756FF #AB56FF #FF56FE
triadic
#AB56FF #FFAB56 #56FFAB
tetradic
#AB56FF #FF5756 #AAFF56 #56FEFF
square
#AB56FF #FF5756 #AAFF56 #56FEFF
split-complementary
#AB56FF #FEFF56 #56FF57
monochromatic
#6E00DB #8D19FF #AB56FF #C993FF #E8D0FF

Accessibility & contrast

On white

3.81
#AB56FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AB56FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56FF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56FF#FFFFFF#000000##000000
##AB56FF1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#0682FB
Tritanopia (blue-blind)
#9A7CA4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab56ff;
/* rgb */ color: rgb(171, 86, 255);
/* oklch */ color: oklch(63.7% 0.240 303.2);
Tailwind
colors: {
  custom: {
    50: '#ca8bff',
    500: '#ab56ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ff;
$custom-light: #ca8bff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ff",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 270.178,
    "s": 100,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63689,
    "c": 0.24021,
    "h": 303.2
  },
  "luminance": 0.22534
}

Semantic roles & 50–950 ramp

primary
#AB56FF
secondary
#D8F3BD
accent
#E60072
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C18
muted
#827D86

Preview Lab

Preview with #AB56FF

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

Preview Lab → · Contrast checker → · Palette generator →

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