#AB51DF#AB51DF

#AB51DF is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.0% C 0.214 H 310.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB51DF
RGBrgb(171, 81, 223)
HSLhsl(278, 69%, 60%)
HSVhsv(278, 64%, 87%)
CMYKcmyk(23.3%, 63.7%, 0%, 12.5%)
CIE-LABlab(51.69, 59.84, -57.45)
CIE-LCHlch(51.69, 82.95, 316.17°)
OKLaboklab(60.95% 0.1397 -0.162)
OKLCHoklch(60.95% 0.214 310.8)
XYZxyz(33.0538, 19.8712, 71.8920)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51DF #85DF51
analogous
#6451DF #AB51DF #DF51CC
triadic
#AB51DF #DFAB51 #51DFAB
tetradic
#AB51DF #DF6451 #85DF51 #51CCDF
square
#AB51DF #DF6451 #85DF51 #51CCDF
split-complementary
#AB51DF #CCDF51 #51DF64
monochromatic
#6C1C99 #9026CD #AB51DF #C485E9 #DDB8F2

Accessibility & contrast

On white

4.22
#AB51DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AB51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51DF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51DF#FFFFFF#000000##000000
##AB51DF1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#417DDC
Tritanopia (blue-blind)
#A46D91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab51df;
/* rgb */ color: rgb(171, 81, 223);
/* oklch */ color: oklch(61.0% 0.214 310.8);
Tailwind
colors: {
  custom: {
    50: '#c887ea',
    500: '#ab51df',
    950: '#000000',
  },
}
SCSS
$custom: #ab51df;
$custom-light: #c887ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51df",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 278.028,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60951,
    "c": 0.21393,
    "h": 310.8
  },
  "luminance": 0.1987
}

Semantic roles & 50–950 ramp

primary
#AB51DF
secondary
#BFE1AA
accent
#EC3C7C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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