#AB81F8#AB81F8

#AB81F8 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.4% C 0.172 H 298.1°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#AB81F8
RGBrgb(171, 129, 248)
HSLhsl(261, 89%, 74%)
HSVhsv(261, 48%, 97%)
CMYKcmyk(31%, 48%, 0%, 2.7%)
CIE-LABlab(62.62, 40.69, -53.94)
CIE-LCHlch(62.62, 67.56, 307.03°)
OKLaboklab(69.44% 0.081 -0.1519)
OKLCHoklch(69.44% 0.172 298.1)
XYZxyz(41.5840, 31.1353, 92.6076)
Luminance0.3114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB81F8 #CEF881
analogous
#8193F8 #AB81F8 #E681F8
triadic
#AB81F8 #F8AB81 #81F8AB
tetradic
#AB81F8 #F88193 #CEF881 #81F8E6
square
#AB81F8 #F88193 #CEF881 #81F8E6
split-complementary
#AB81F8 #F8E681 #93F881
monochromatic
#5E0DF1 #8447F5 #AB81F8 #D2BBFB #ECE2FD

Accessibility & contrast

On white

2.91
#AB81F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#AB81F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB81F8
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB81F8#FFFFFF#000000##000000
##AB81F81.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5998FC
Deuteranopia (green-blind)
#6396F5
Tritanopia (blue-blind)
#9B97B1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab81f8;
/* rgb */ color: rgb(171, 129, 248);
/* oklch */ color: oklch(69.4% 0.172 298.1);
Tailwind
colors: {
  custom: {
    50: '#c7a6fb',
    500: '#ab81f8',
    950: '#000000',
  },
}
SCSS
$custom: #ab81f8;
$custom-light: #c7a6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab81f8",
  "rgb": {
    "r": 171,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 261.176,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69443,
    "c": 0.17209,
    "h": 298.1
  },
  "luminance": 0.31136
}

Semantic roles & 50–950 ramp

primary
#AB81F8
secondary
#EAF5D6
accent
#E60095
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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