#AB7CFB#AB7CFB

#AB7CFB is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.8% C 0.183 H 298.6°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AB7CFB
RGBrgb(171, 124, 251)
HSLhsl(262, 94%, 74%)
HSVhsv(262, 51%, 98%)
CMYKcmyk(31.9%, 50.6%, 0%, 1.6%)
CIE-LABlab(61.69, 44.19, -57.08)
CIE-LCHlch(61.69, 72.18, 307.75°)
OKLaboklab(68.8% 0.0876 -0.161)
OKLCHoklch(68.8% 0.183 298.6)
XYZxyz(41.4106, 30.0379, 94.8643)
Luminance0.3004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CFB #CCFB7C
analogous
#7C8CFB #AB7CFB #EB7CFB
triadic
#AB7CFB #FBAB7C #7CFBAB
tetradic
#AB7CFB #FB7C8C #CCFB7C #7CFBEB
square
#AB7CFB #FB7C8C #CCFB7C #7CFBEB
split-complementary
#AB7CFB #FBEB7C #8CFB7C
monochromatic
#5F07F5 #8541F9 #AB7CFB #D1B7FD #ECE1FE

Accessibility & contrast

On white

3.00
#AB7CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#AB7CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7CFB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CFB#FFFFFF#000000##000000
##AB7CFB1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FF
Deuteranopia (green-blind)
#5A94F8
Tritanopia (blue-blind)
#9A94B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7cfb;
/* rgb */ color: rgb(171, 124, 251);
/* oklch */ color: oklch(68.8% 0.183 298.6);
Tailwind
colors: {
  custom: {
    50: '#c7a3fd',
    500: '#ab7cfb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cfb;
$custom-light: #c7a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cfb",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 262.205,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.68798,
    "c": 0.18333,
    "h": 298.6
  },
  "luminance": 0.30038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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