#AB7BF5#AB7BF5

#AB7BF5 is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.3% C 0.177 H 299.9°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#AB7BF5
RGBrgb(171, 123, 245)
HSLhsl(264, 86%, 72%)
HSVhsv(264, 50%, 96%)
CMYKcmyk(30.2%, 49.8%, 0%, 3.9%)
CIE-LABlab(61.15, 43.27, -54.63)
CIE-LCHlch(61.15, 69.69, 308.38°)
OKLaboklab(68.29% 0.0884 -0.1539)
OKLCHoklch(68.29% 0.177 299.9)
XYZxyz(40.3551, 29.4162, 89.9203)
Luminance0.2942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BF5 #C5F57B
analogous
#7B88F5 #AB7BF5 #E87BF5
triadic
#AB7BF5 #F5AB7B #7BF5AB
tetradic
#AB7BF5 #F57B88 #C5F57B #7BF5E8
square
#AB7BF5 #F57B88 #C5F57B #7BF5E8
split-complementary
#AB7BF5 #F5E87B #88F57B
monochromatic
#6411E4 #8742F1 #AB7BF5 #CFB4F9 #EDE3FD

Accessibility & contrast

On white

3.05
#AB7BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#AB7BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BF5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BF5#FFFFFF#000000##000000
##AB7BF51.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5293F9
Deuteranopia (green-blind)
#5E93F2
Tritanopia (blue-blind)
#9C92AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7bf5;
/* rgb */ color: rgb(171, 123, 245);
/* oklch */ color: oklch(68.3% 0.177 299.9);
Tailwind
colors: {
  custom: {
    50: '#c7a2f9',
    500: '#ab7bf5',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bf5;
$custom-light: #c7a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bf5",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 263.607,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68292,
    "c": 0.17747,
    "h": 299.9
  },
  "luminance": 0.29416
}

Semantic roles & 50–950 ramp

primary
#AB7BF5
secondary
#E9F5D6
accent
#E2038B
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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