#AB7CD4#AB7CD4

#AB7CD4 is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.7% C 0.135 H 307.7°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#AB7CD4
RGBrgb(171, 124, 212)
HSLhsl(272, 51%, 66%)
HSVhsv(272, 42%, 83%)
CMYKcmyk(19.3%, 41.5%, 0%, 16.9%)
CIE-LABlab(59.73, 34.94, -38.48)
CIE-LCHlch(59.73, 51.98, 312.24°)
OKLaboklab(66.7% 0.0826 -0.1069)
OKLCHoklch(66.7% 0.135 307.7)
XYZxyz(35.8836, 27.8271, 65.7554)
Luminance0.2783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CD4 #A5D47C
analogous
#7F7CD4 #AB7CD4 #D47CD1
triadic
#AB7CD4 #D4AB7C #7CD4AB
tetradic
#AB7CD4 #D47F7C #A5D47C #7CD1D4
square
#AB7CD4 #D47F7C #A5D47C #7CD1D4
split-complementary
#AB7CD4 #D1D47C #7CD47F
monochromatic
#6E35A1 #8D4EC5 #AB7CD4 #C9AAE3 #E6D8F2

Accessibility & contrast

On white

3.20
#AB7CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#AB7CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7CD4
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CD4#FFFFFF#000000##000000
##AB7CD41.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#688ED7
Deuteranopia (green-blind)
#7390D2
Tritanopia (blue-blind)
#A58A9E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7cd4;
/* rgb */ color: rgb(171, 124, 212);
/* oklch */ color: oklch(66.7% 0.135 307.7);
Tailwind
colors: {
  custom: {
    50: '#c5a2e1',
    500: '#ab7cd4',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cd4;
$custom-light: #c5a2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cd4",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 272.045,
    "s": 50.575,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66699,
    "c": 0.13512,
    "h": 307.7
  },
  "luminance": 0.27827
}

Semantic roles & 50–950 ramp

primary
#AB7CD4
secondary
#D5E4C7
accent
#BE286E
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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