#AB8BF7#AB8BF7

#AB8BF7 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.1% C 0.156 H 295.8°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#AB8BF7
RGBrgb(171, 139, 247)
HSLhsl(258, 87%, 76%)
HSVhsv(258, 44%, 97%)
CMYKcmyk(30.8%, 43.7%, 0%, 3.1%)
CIE-LABlab(64.83, 34.85, -49.88)
CIE-LCHlch(64.83, 60.85, 304.94°)
OKLaboklab(71.09% 0.0678 -0.14)
OKLCHoklch(71.09% 0.156 295.8)
XYZxyz(42.8116, 33.8380, 92.2535)
Luminance0.3384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8BF7 #D7F78B
analogous
#8BA1F7 #AB8BF7 #E18BF7
triadic
#AB8BF7 #F7AB8B #8BF7AB
tetradic
#AB8BF7 #F78BA1 #D7F78B #8BF7E1
square
#AB8BF7 #F78BA1 #D7F78B #8BF7E1
split-complementary
#AB8BF7 #F7E18B #A1F78B
monochromatic
#5818EF #8252F3 #AB8BF7 #D4C4FB #EAE2FD

Accessibility & contrast

On white

2.70
#AB8BF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#AB8BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8BF7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8BF7#FFFFFF#000000##000000
##AB8BF71.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9EFB
Deuteranopia (green-blind)
#6F9CF4
Tritanopia (blue-blind)
#9A9FB5
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ab8bf7;
/* rgb */ color: rgb(171, 139, 247);
/* oklch */ color: oklch(71.1% 0.156 295.8);
Tailwind
colors: {
  custom: {
    50: '#c7adfa',
    500: '#ab8bf7',
    950: '#000000',
  },
}
SCSS
$custom: #ab8bf7;
$custom-light: #c7adfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8bf7",
  "rgb": {
    "r": 171,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 257.778,
    "s": 87.097,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71087,
    "c": 0.15558,
    "h": 295.8
  },
  "luminance": 0.33839
}

Semantic roles & 50–950 ramp

primary
#AB8BF7
secondary
#ECF5D6
accent
#E402A1
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB8BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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