#AB7BFB#AB7BFB

#AB7BFB is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.6% C 0.185 H 298.7°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AB7BFB
RGBrgb(171, 123, 251)
HSLhsl(263, 94%, 73%)
HSVhsv(263, 51%, 98%)
CMYKcmyk(31.9%, 51%, 0%, 1.6%)
CIE-LABlab(61.47, 44.74, -57.42)
CIE-LCHlch(61.47, 72.79, 307.92°)
OKLaboklab(68.64% 0.0889 -0.162)
OKLCHoklch(68.64% 0.185 298.7)
XYZxyz(41.2859, 29.7885, 94.8227)
Luminance0.2979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BFB #CBFB7B
analogous
#7B8BFB #AB7BFB #EB7BFB
triadic
#AB7BFB #FBAB7B #7BFBAB
tetradic
#AB7BFB #FB7B8B #CBFB7B #7BFBEB
square
#AB7BFB #FB7B8B #CBFB7B #7BFBEB
split-complementary
#AB7BFB #FBEB7B #8BFB7B
monochromatic
#6007F4 #8540F9 #AB7BFB #D1B6FD #ECE1FE

Accessibility & contrast

On white

3.02
#AB7BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AB7BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BFB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BFB#FFFFFF#000000##000000
##AB7BFB1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C94FF
Deuteranopia (green-blind)
#5993F8
Tritanopia (blue-blind)
#9A94B0
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7bfb;
/* rgb */ color: rgb(171, 123, 251);
/* oklch */ color: oklch(68.6% 0.185 298.7);
Tailwind
colors: {
  custom: {
    50: '#c7a2fd',
    500: '#ab7bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bfb;
$custom-light: #c7a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bfb",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 262.5,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68638,
    "c": 0.18481,
    "h": 298.7
  },
  "luminance": 0.29789
}

Semantic roles & 50–950 ramp

primary
#AB7BFB
secondary
#EAF6D5
accent
#E6008F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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