#AB7BFA#AB7BFA

#AB7BFA is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.6% C 0.184 H 298.9°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AB7BFA
RGBrgb(171, 123, 250)
HSLhsl(263, 93%, 73%)
HSVhsv(263, 51%, 98%)
CMYKcmyk(31.6%, 50.8%, 0%, 2%)
CIE-LABlab(61.42, 44.49, -56.96)
CIE-LCHlch(61.42, 72.28, 308.00°)
OKLaboklab(68.58% 0.0888 -0.1607)
OKLCHoklch(68.58% 0.184 298.9)
XYZxyz(41.1287, 29.7256, 93.9947)
Luminance0.2973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BFA #CAFA7B
analogous
#7B8AFA #AB7BFA #EA7BFA
triadic
#AB7BFA #FAAB7B #7BFAAB
tetradic
#AB7BFA #FA7B8A #CAFA7B #7BFAEA
square
#AB7BFA #FA7B8A #CAFA7B #7BFAEA
split-complementary
#AB7BFA #FAEA7B #8AFA7B
monochromatic
#6109F1 #8540F8 #AB7BFA #D1B6FC #ECE2FE

Accessibility & contrast

On white

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

On black

6.95
#AB7BFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BFA
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BFA#FFFFFF#000000##000000
##AB7BFA1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FE
Deuteranopia (green-blind)
#5A93F7
Tritanopia (blue-blind)
#9A93AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7bfa;
/* rgb */ color: rgb(171, 123, 250);
/* oklch */ color: oklch(68.6% 0.184 298.9);
Tailwind
colors: {
  custom: {
    50: '#c7a2fc',
    500: '#ab7bfa',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bfa;
$custom-light: #c7a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bfa",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 250
  },
  "hsl": {
    "h": 262.677,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.6858,
    "c": 0.18359,
    "h": 298.9
  },
  "luminance": 0.29726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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