#AB7CD7#AB7CD7

#AB7CD7 is a light, vivid violet. Relative luminance 0.280; OKLCH L 66.8% C 0.139 H 306.8°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AB7CD7
RGBrgb(171, 124, 215)
HSLhsl(271, 53%, 66%)
HSVhsv(271, 42%, 84%)
CMYKcmyk(20.5%, 42.3%, 0%, 15.7%)
CIE-LABlab(59.87, 35.62, -39.95)
CIE-LCHlch(59.87, 53.52, 311.72°)
OKLaboklab(66.85% 0.0832 -0.1111)
OKLCHoklch(66.85% 0.139 306.8)
XYZxyz(36.2655, 27.9798, 67.7669)
Luminance0.2798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CD7 #A8D77C
analogous
#7E7CD7 #AB7CD7 #D77CD6
triadic
#AB7CD7 #D7AB7C #7CD7AB
tetradic
#AB7CD7 #D77E7C #A8D77C #7CD6D7
square
#AB7CD7 #D77E7C #A8D77C #7CD6D7
split-complementary
#AB7CD7 #D6D77C #7CD77E
monochromatic
#6E33A6 #8D4DC9 #AB7CD7 #C9ABE5 #E7DAF4

Accessibility & contrast

On white

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

On black

6.60
#AB7CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7CD7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CD7#FFFFFF#000000##000000
##AB7CD71.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#678EDA
Deuteranopia (green-blind)
#7291D5
Tritanopia (blue-blind)
#A58A9F
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7cd7;
/* rgb */ color: rgb(171, 124, 215);
/* oklch */ color: oklch(66.8% 0.139 306.8);
Tailwind
colors: {
  custom: {
    50: '#c5a3e3',
    500: '#ab7cd7',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cd7;
$custom-light: #c5a3e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cd7",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 270.989,
    "s": 53.216,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66849,
    "c": 0.13882,
    "h": 306.8
  },
  "luminance": 0.2798
}

Semantic roles & 50–950 ramp

primary
#AB7CD7
secondary
#D7E6C9
accent
#C12570
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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