#AB7CFD#AB7CFD

#AB7CFD is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.9% C 0.186 H 298.2°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#AB7CFD
RGBrgb(171, 124, 253)
HSLhsl(262, 97%, 74%)
HSVhsv(262, 51%, 99%)
CMYKcmyk(32.4%, 51%, 0%, 0.8%)
CIE-LABlab(61.80, 44.69, -58.00)
CIE-LCHlch(61.80, 73.22, 307.61°)
OKLaboklab(68.91% 0.0878 -0.1637)
OKLCHoklch(68.91% 0.186 298.2)
XYZxyz(41.7275, 30.1646, 96.5334)
Luminance0.3016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CFD #CEFD7C
analogous
#7C8EFD #AB7CFD #EB7CFD
triadic
#AB7CFD #FDAB7C #7CFDAB
tetradic
#AB7CFD #FD7C8E #CEFD7C #7CFDEB
square
#AB7CFD #FD7C8E #CEFD7C #7CFDEB
split-complementary
#AB7CFD #FDEB7C #8EFD7C
monochromatic
#5E04FB #8440FC #AB7CFD #D2B8FE #ECE1FF

Accessibility & contrast

On white

2.99
#AB7CFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#AB7CFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7CFD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CFD#FFFFFF#000000##000000
##AB7CFD1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C95FF
Deuteranopia (green-blind)
#5994FA
Tritanopia (blue-blind)
#9995B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7cfd;
/* rgb */ color: rgb(171, 124, 253);
/* oklch */ color: oklch(68.9% 0.186 298.2);
Tailwind
colors: {
  custom: {
    50: '#c8a3ff',
    500: '#ab7cfd',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cfd;
$custom-light: #c8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cfd",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 253
  },
  "hsl": {
    "h": 261.86,
    "s": 96.992,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68914,
    "c": 0.18578,
    "h": 298.2
  },
  "luminance": 0.30165
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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