#AB7ECA#AB7ECA

#AB7ECA is a light, moderate violet. Relative luminance 0.278; OKLCH L 66.6% C 0.119 H 310.6°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#AB7ECA
RGBrgb(171, 126, 202)
HSLhsl(276, 42%, 64%)
HSVhsv(276, 38%, 79%)
CMYKcmyk(15.3%, 37.6%, 0%, 20.8%)
CIE-LABlab(59.75, 31.59, -32.82)
CIE-LCHlch(59.75, 45.55, 313.90°)
OKLaboklab(66.57% 0.0777 -0.0906)
OKLCHoklch(66.57% 0.119 310.6)
XYZxyz(34.9142, 27.8444, 59.4009)
Luminance0.2784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7ECA #9DCA7E
analogous
#857ECA #AB7ECA #CA7EC3
triadic
#AB7ECA #CAAB7E #7ECAAB
tetradic
#AB7ECA #CA857E #9DCA7E #7EC3CA
square
#AB7ECA #CA857E #9DCA7E #7EC3CA
split-complementary
#AB7ECA #C3CA7E #7ECA85
monochromatic
#6F3C92 #8F53B8 #AB7ECA #C7A9DC #E3D5EE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB7ECA#FFFFFF#000000##000000
##AB7ECA1.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)
#708ECD
Deuteranopia (green-blind)
#7A91C8
Tritanopia (blue-blind)
#A8899B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7eca;
/* rgb */ color: rgb(171, 126, 202);
/* oklch */ color: oklch(66.6% 0.119 310.6);
Tailwind
colors: {
  custom: {
    50: '#c5a4da',
    500: '#ab7eca',
    950: '#000000',
  },
}
SCSS
$custom: #ab7eca;
$custom-light: #c5a4da;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7eca",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 275.526,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.66565,
    "c": 0.11939,
    "h": 310.6
  },
  "luminance": 0.27844
}

Semantic roles & 50–950 ramp

primary
#AB7ECA
secondary
#CFDFC5
accent
#B53167
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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