#AB81FC#AB81FC

#AB81FC is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.7% C 0.177 H 297.4°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AB81FC
RGBrgb(171, 129, 252)
HSLhsl(260, 95%, 75%)
HSVhsv(260, 49%, 99%)
CMYKcmyk(32.1%, 48.8%, 0%, 1.2%)
CIE-LABlab(62.83, 41.68, -55.80)
CIE-LCHlch(62.83, 69.65, 306.76°)
OKLaboklab(69.67% 0.0814 -0.1573)
OKLCHoklch(69.67% 0.177 297.4)
XYZxyz(42.2112, 31.3862, 95.9108)
Luminance0.3139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB81FC #D2FC81
analogous
#8195FC #AB81FC #E981FC
triadic
#AB81FC #FCAB81 #81FCAB
tetradic
#AB81FC #FC8195 #D2FC81 #81FCE9
square
#AB81FC #FC8195 #D2FC81 #81FCE9
split-complementary
#AB81FC #FCE981 #95FC81
monochromatic
#5B09F9 #8345FB #AB81FC #D3BDFD #EBE1FE

Accessibility & contrast

On white

2.89
#AB81FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AB81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB81FC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB81FC#FFFFFF#000000##000000
##AB81FC1.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5698FF
Deuteranopia (green-blind)
#6097F9
Tritanopia (blue-blind)
#9998B3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab81fc;
/* rgb */ color: rgb(171, 129, 252);
/* oklch */ color: oklch(69.7% 0.177 297.4);
Tailwind
colors: {
  custom: {
    50: '#c7a6fe',
    500: '#ab81fc',
    950: '#000000',
  },
}
SCSS
$custom: #ab81fc;
$custom-light: #c7a6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab81fc",
  "rgb": {
    "r": 171,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 260.488,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.69669,
    "c": 0.1771,
    "h": 297.4
  },
  "luminance": 0.31387
}

Semantic roles & 50–950 ramp

primary
#AB81FC
secondary
#EBF7D4
accent
#E60097
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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