#AB51FF#AB51FF

#AB51FF is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 63.1% C 0.246 H 303.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AB51FF
RGBrgb(171, 81, 255)
HSLhsl(271, 100%, 66%)
HSVhsv(271, 68%, 100%)
CMYKcmyk(32.9%, 68.2%, 0%, 0%)
CIE-LABlab(53.77, 66.89, -72.01)
CIE-LCHlch(53.77, 98.28, 312.89°)
OKLaboklab(63.11% 0.1367 -0.2048)
OKLCHoklch(63.11% 0.246 303.7)
XYZxyz(37.7829, 21.7629, 96.7985)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51FF #A5FF51
analogous
#5451FF #AB51FF #FF51FC
triadic
#AB51FF #FFAB51 #51FFAB
tetradic
#AB51FF #FF5451 #A5FF51 #51FCFF
square
#AB51FF #FF5451 #A5FF51 #51FCFF
split-complementary
#AB51FF #FCFF51 #51FF54
monochromatic
#6E00D6 #8D14FF #AB51FF #C98EFF #E6CBFF

Accessibility & contrast

On white

3.92
#AB51FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AB51FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51FF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51FF#FFFFFF#000000##000000
##AB51FF1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0080FB
Tritanopia (blue-blind)
#9B79A2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab51ff;
/* rgb */ color: rgb(171, 81, 255);
/* oklch */ color: oklch(63.1% 0.246 303.7);
Tailwind
colors: {
  custom: {
    50: '#ca88ff',
    500: '#ab51ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab51ff;
$custom-light: #ca88ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51ff",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 271.034,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63107,
    "c": 0.2462,
    "h": 303.7
  },
  "luminance": 0.21763
}

Semantic roles & 50–950 ramp

primary
#AB51FF
secondary
#D5F3B9
accent
#E6006F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AB51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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