#AB81EF#AB81EF

#AB81EF is a light, vivid violet. Relative luminance 0.306; OKLCH L 68.9% C 0.161 H 299.8°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#AB81EF
RGBrgb(171, 129, 239)
HSLhsl(263, 77%, 72%)
HSVhsv(263, 46%, 94%)
CMYKcmyk(28.5%, 46%, 0%, 6.3%)
CIE-LABlab(62.16, 38.49, -49.71)
CIE-LCHlch(62.16, 62.86, 307.75°)
OKLaboklab(68.95% 0.0799 -0.1395)
OKLCHoklch(68.95% 0.161 299.8)
XYZxyz(40.2212, 30.5902, 85.4301)
Luminance0.3059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB81EF #C5EF81
analogous
#818EEF #AB81EF #E281EF
triadic
#AB81EF #EFAB81 #81EFAB
tetradic
#AB81EF #EF818E #C5EF81 #81EFE2
square
#AB81EF #EF818E #C5EF81 #81EFE2
split-complementary
#AB81EF #EFE281 #8EEF81
monochromatic
#641CDA #874BE8 #AB81EF #CFB7F6 #EDE4FC

Accessibility & contrast

On white

2.95
#AB81EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#AB81EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB81EF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB81EF#FFFFFF#000000##000000
##AB81EF1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6096F3
Deuteranopia (green-blind)
#6995EC
Tritanopia (blue-blind)
#9E95AD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab81ef;
/* rgb */ color: rgb(171, 129, 239);
/* oklch */ color: oklch(68.9% 0.161 299.8);
Tailwind
colors: {
  custom: {
    50: '#c6a6f5',
    500: '#ab81ef',
    950: '#000000',
  },
}
SCSS
$custom: #ab81ef;
$custom-light: #c6a6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab81ef",
  "rgb": {
    "r": 171,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 262.909,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68947,
    "c": 0.16078,
    "h": 299.8
  },
  "luminance": 0.3059
}

Semantic roles & 50–950 ramp

primary
#AB81EF
secondary
#E9F3D8
accent
#DA0C8B
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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