#AB7CFE#AB7CFE

#AB7CFE is a light, vivid violet. Relative luminance 0.302; OKLCH L 69.0% C 0.187 H 298.0°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AB7CFE
RGBrgb(171, 124, 254)
HSLhsl(262, 98%, 74%)
HSVhsv(262, 51%, 100%)
CMYKcmyk(32.7%, 51.2%, 0%, 0.4%)
CIE-LABlab(61.85, 44.93, -58.46)
CIE-LCHlch(61.85, 73.74, 307.54°)
OKLaboklab(68.97% 0.0878 -0.1651)
OKLCHoklch(68.97% 0.187 298)
XYZxyz(41.8873, 30.2285, 97.3746)
Luminance0.3023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CFE #CFFE7C
analogous
#7C8EFE #AB7CFE #EC7CFE
triadic
#AB7CFE #FEAB7C #7CFEAB
tetradic
#AB7CFE #FE7C8E #CFFE7C #7CFEEC
square
#AB7CFE #FE7C8E #CFFE7C #7CFEEC
split-complementary
#AB7CFE #FEEC7C #8EFE7C
monochromatic
#5D03FD #843FFE #AB7CFE #D2B9FE #ECE1FF

Accessibility & contrast

On white

2.98
#AB7CFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AB7CFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7CFE
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CFE#FFFFFF#000000##000000
##AB7CFE1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B96FF
Deuteranopia (green-blind)
#5894FB
Tritanopia (blue-blind)
#9995B2
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7cfe;
/* rgb */ color: rgb(171, 124, 254);
/* oklch */ color: oklch(69.0% 0.187 298.0);
Tailwind
colors: {
  custom: {
    50: '#c8a3ff',
    500: '#ab7cfe',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cfe;
$custom-light: #c8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cfe",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 254
  },
  "hsl": {
    "h": 261.692,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.68973,
    "c": 0.187,
    "h": 298
  },
  "luminance": 0.30229
}

Semantic roles & 50–950 ramp

primary
#AB7CFE
secondary
#EAF7D4
accent
#E60093
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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