#AB57DC#AB57DC

#AB57DC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.203 H 311.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB57DC
RGBrgb(171, 87, 220)
HSLhsl(278, 66%, 60%)
HSVhsv(278, 60%, 86%)
CMYKcmyk(22.3%, 60.5%, 0%, 13.7%)
CIE-LABlab(52.56, 56.34, -54.36)
CIE-LCHlch(52.56, 78.29, 316.03°)
OKLaboklab(61.52% 0.1328 -0.153)
OKLCHoklch(61.52% 0.203 311)
XYZxyz(33.1186, 20.6423, 69.9360)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB57DC #88DC57
analogous
#6957DC #AB57DC #DC57CA
triadic
#AB57DC #DCAB57 #57DCAB
tetradic
#AB57DC #DC6957 #88DC57 #57CADC
square
#AB57DC #DC6957 #88DC57 #57CADC
split-complementary
#AB57DC #CADC57 #57DC69
monochromatic
#6C2099 #902ACB #AB57DC #C48AE7 #DEBCF1

Accessibility & contrast

On white

4.09
#AB57DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AB57DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB57DC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB57DC#FFFFFF#000000##000000
##AB57DC1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2279E0
Deuteranopia (green-blind)
#4A7FD9
Tritanopia (blue-blind)
#A57092
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab57dc;
/* rgb */ color: rgb(171, 87, 220);
/* oklch */ color: oklch(61.5% 0.203 311.0);
Tailwind
colors: {
  custom: {
    50: '#c78be7',
    500: '#ab57dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab57dc;
$custom-light: #c78be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab57dc",
  "rgb": {
    "r": 171,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 277.895,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61519,
    "c": 0.20257,
    "h": 311
  },
  "luminance": 0.20642
}

Semantic roles & 50–950 ramp

primary
#AB57DC
secondary
#C1E1AE
accent
#CD185B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB57DC

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

Preview Lab → · Contrast checker → · Palette generator →

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