#AB7BF7#AB7BF7

#AB7BF7 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.4% C 0.180 H 299.5°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#AB7BF7
RGBrgb(171, 123, 247)
HSLhsl(263, 89%, 73%)
HSVhsv(263, 50%, 97%)
CMYKcmyk(30.8%, 50.2%, 0%, 3.1%)
CIE-LABlab(61.25, 43.76, -55.56)
CIE-LCHlch(61.25, 70.72, 308.22°)
OKLaboklab(68.41% 0.0886 -0.1566)
OKLCHoklch(68.41% 0.18 299.5)
XYZxyz(40.6621, 29.5389, 91.5370)
Luminance0.2954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BF7 #C7F77B
analogous
#7B89F7 #AB7BF7 #E97BF7
triadic
#AB7BF7 #F7AB7B #7BF7AB
tetradic
#AB7BF7 #F77B89 #C7F77B #7BF7E9
square
#AB7BF7 #F77B89 #C7F77B #7BF7E9
split-complementary
#AB7BF7 #F7E97B #89F77B
monochromatic
#630EE9 #8641F4 #AB7BF7 #D0B5FA #EDE2FD

Accessibility & contrast

On white

3.04
#AB7BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#AB7BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BF7
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BF7#FFFFFF#000000##000000
##AB7BF71.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5094FB
Deuteranopia (green-blind)
#5C93F4
Tritanopia (blue-blind)
#9B93AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7bf7;
/* rgb */ color: rgb(171, 123, 247);
/* oklch */ color: oklch(68.4% 0.180 299.5);
Tailwind
colors: {
  custom: {
    50: '#c7a2fa',
    500: '#ab7bf7',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bf7;
$custom-light: #c7a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bf7",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 263.226,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68406,
    "c": 0.17992,
    "h": 299.5
  },
  "luminance": 0.29539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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