#AB7ECD#AB7ECD

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

Color values

HEX#AB7ECD
RGBrgb(171, 126, 205)
HSLhsl(274, 44%, 65%)
HSVhsv(274, 39%, 80%)
CMYKcmyk(16.6%, 38.5%, 0%, 19.6%)
CIE-LABlab(59.88, 32.25, -34.31)
CIE-LCHlch(59.88, 47.09, 313.23°)
OKLaboklab(66.71% 0.0784 -0.0949)
OKLCHoklch(66.71% 0.123 309.6)
XYZxyz(35.2729, 27.9879, 61.2898)
Luminance0.2799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7ECD #A0CD7E
analogous
#837ECD #AB7ECD #CD7EC8
triadic
#AB7ECD #CDAB7E #7ECDAB
tetradic
#AB7ECD #CD837E #A0CD7E #7EC8CD
square
#AB7ECD #CD837E #A0CD7E #7EC8CD
split-complementary
#AB7ECD #C8CD7E #7ECD83
monochromatic
#6F3A96 #8E52BC #AB7ECD #C8AADE #E4D6EF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB7ECD#FFFFFF#000000##000000
##AB7ECD1.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)
#6E8ED0
Deuteranopia (green-blind)
#7991CB
Tritanopia (blue-blind)
#A78A9C
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7ecd;
/* rgb */ color: rgb(171, 126, 205);
/* oklch */ color: oklch(66.7% 0.123 309.6);
Tailwind
colors: {
  custom: {
    50: '#c5a4dc',
    500: '#ab7ecd',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ecd;
$custom-light: #c5a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ecd",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 205
  },
  "hsl": {
    "h": 274.177,
    "s": 44.134,
    "l": 64.902
  },
  "oklch": {
    "l": 0.66706,
    "c": 0.12308,
    "h": 309.6
  },
  "luminance": 0.27987
}

Semantic roles & 50–950 ramp

primary
#AB7ECD
secondary
#D2E1C6
accent
#B72E69
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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