#AB7ECB#AB7ECB

#AB7ECB is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.6% C 0.121 H 310.3°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#AB7ECB
RGBrgb(171, 126, 203)
HSLhsl(275, 43%, 65%)
HSVhsv(275, 38%, 80%)
CMYKcmyk(15.8%, 37.9%, 0%, 20.4%)
CIE-LABlab(59.79, 31.81, -33.32)
CIE-LCHlch(59.79, 46.07, 313.67°)
OKLaboklab(66.61% 0.078 -0.0921)
OKLCHoklch(66.61% 0.121 310.3)
XYZxyz(35.0330, 27.8919, 60.0265)
Luminance0.2789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7ECB #9ECB7E
analogous
#857ECB #AB7ECB #CB7EC4
triadic
#AB7ECB #CBAB7E #7ECBAB
tetradic
#AB7ECB #CB857E #9ECB7E #7EC4CB
square
#AB7ECB #CB857E #9ECB7E #7EC4CB
split-complementary
#AB7ECB #C4CB7E #7ECB85
monochromatic
#6F3B93 #8F52B9 #AB7ECB #C7AADD #E4D5EE

Accessibility & contrast

On white

3.19
#AB7ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#AB7ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7ECB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7ECB#FFFFFF#000000##000000
##AB7ECB1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8ECE
Deuteranopia (green-blind)
#7A91C9
Tritanopia (blue-blind)
#A7899B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7ecb;
/* rgb */ color: rgb(171, 126, 203);
/* oklch */ color: oklch(66.6% 0.121 310.3);
Tailwind
colors: {
  custom: {
    50: '#c5a4db',
    500: '#ab7ecb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ecb;
$custom-light: #c5a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ecb",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 275.065,
    "s": 42.541,
    "l": 64.51
  },
  "oklch": {
    "l": 0.66612,
    "c": 0.12062,
    "h": 310.3
  },
  "luminance": 0.27891
}

Semantic roles & 50–950 ramp

primary
#AB7ECB
secondary
#D0E0C5
accent
#B63067
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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