#AB8BFB#AB8BFB

#AB8BFB is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.3% C 0.161 H 295.2°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#AB8BFB
RGBrgb(171, 139, 251)
HSLhsl(257, 93%, 76%)
HSVhsv(257, 45%, 98%)
CMYKcmyk(31.9%, 44.6%, 0%, 1.6%)
CIE-LABlab(65.03, 35.85, -51.76)
CIE-LCHlch(65.03, 62.97, 304.71°)
OKLaboklab(71.3% 0.0684 -0.1455)
OKLCHoklch(71.3% 0.161 295.2)
XYZxyz(43.4354, 34.0875, 95.5392)
Luminance0.3409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8BFB #DBFB8B
analogous
#8BA3FB #AB8BFB #E38BFB
triadic
#AB8BFB #FBAB8B #8BFBAB
tetradic
#AB8BFB #FB8BA3 #DBFB8B #8BFBE3
square
#AB8BFB #FB8BA3 #DBFB8B #8BFBE3
split-complementary
#AB8BFB #FBE38B #A3FB8B
monochromatic
#5515F7 #8050F9 #AB8BFB #D6C6FD #EAE1FE

Accessibility & contrast

On white

2.69
#AB8BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#AB8BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8BFB
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8BFB#FFFFFF#000000##000000
##AB8BFB1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#679FFF
Deuteranopia (green-blind)
#6D9CF8
Tritanopia (blue-blind)
#99A0B7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ab8bfb;
/* rgb */ color: rgb(171, 139, 251);
/* oklch */ color: oklch(71.3% 0.161 295.2);
Tailwind
colors: {
  custom: {
    50: '#c7adfd',
    500: '#ab8bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ab8bfb;
$custom-light: #c7adfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8bfb",
  "rgb": {
    "r": 171,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 257.143,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71301,
    "c": 0.16078,
    "h": 295.2
  },
  "luminance": 0.34088
}

Semantic roles & 50–950 ramp

primary
#AB8BFB
secondary
#EDF6D5
accent
#E600A4
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB8BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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