#AB7CD8#AB7CD8

#AB7CD8 is a light, vivid violet. Relative luminance 0.280; OKLCH L 66.9% C 0.140 H 306.5°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#AB7CD8
RGBrgb(171, 124, 216)
HSLhsl(271, 54%, 67%)
HSVhsv(271, 43%, 85%)
CMYKcmyk(20.8%, 42.6%, 0%, 15.3%)
CIE-LABlab(59.92, 35.85, -40.44)
CIE-LCHlch(59.92, 54.04, 311.56°)
OKLaboklab(66.9% 0.0834 -0.1125)
OKLCHoklch(66.9% 0.14 306.5)
XYZxyz(36.3944, 28.0314, 68.4457)
Luminance0.2803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CD8 #A9D87C
analogous
#7D7CD8 #AB7CD8 #D87CD7
triadic
#AB7CD8 #D8AB7C #7CD8AB
tetradic
#AB7CD8 #D87D7C #A9D87C #7CD7D8
square
#AB7CD8 #D87D7C #A9D87C #7CD7D8
split-complementary
#AB7CD8 #D7D87C #7CD87D
monochromatic
#6E32A8 #8D4DCA #AB7CD8 #C9ABE6 #E7DAF4

Accessibility & contrast

On white

3.18
#AB7CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#AB7CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7CD8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CD8#FFFFFF#000000##000000
##AB7CD81.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#668FDB
Deuteranopia (green-blind)
#7191D6
Tritanopia (blue-blind)
#A48BA0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7cd8;
/* rgb */ color: rgb(171, 124, 216);
/* oklch */ color: oklch(66.9% 0.140 306.5);
Tailwind
colors: {
  custom: {
    50: '#c6a3e4',
    500: '#ab7cd8',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cd8;
$custom-light: #c6a3e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cd8",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 216
  },
  "hsl": {
    "h": 270.652,
    "s": 54.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66899,
    "c": 0.14006,
    "h": 306.5
  },
  "luminance": 0.28031
}

Semantic roles & 50–950 ramp

primary
#AB7CD8
secondary
#D8E7C9
accent
#C22471
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F15
muted
#827F84

Preview Lab

Preview with #AB7CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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