#AB7BC2#AB7BC2

#AB7BC2 is a light, moderate purple. Relative luminance 0.267; OKLCH L 65.7% C 0.115 H 314.3°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#AB7BC2
RGBrgb(171, 123, 194)
HSLhsl(281, 37%, 62%)
HSVhsv(281, 37%, 76%)
CMYKcmyk(11.9%, 36.6%, 0%, 23.9%)
CIE-LABlab(58.71, 31.54, -29.90)
CIE-LCHlch(58.71, 43.46, 316.54°)
OKLaboklab(65.67% 0.0804 -0.0822)
OKLCHoklch(65.67% 0.115 314.3)
XYZxyz(33.6136, 26.7196, 54.4151)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BC2 #92C27B
analogous
#877BC2 #AB7BC2 #C27BB6
triadic
#AB7BC2 #C2AB7B #7BC2AB
tetradic
#AB7BC2 #C2877B #92C27B #7BB6C2
square
#AB7BC2 #C2877B #92C27B #7BB6C2
split-complementary
#AB7BC2 #B6C27B #7BC287
monochromatic
#6E3E85 #9051AF #AB7BC2 #C6A5D5 #E0CFE9

Accessibility & contrast

On white

3.31
#AB7BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#AB7BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BC2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BC2#FFFFFF#000000##000000
##AB7BC21.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8AC5
Deuteranopia (green-blind)
#7B8FC0
Tritanopia (blue-blind)
#AA8496
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ab7bc2;
/* rgb */ color: rgb(171, 123, 194);
/* oklch */ color: oklch(65.7% 0.115 314.3);
Tailwind
colors: {
  custom: {
    50: '#c5a2d4',
    500: '#ab7bc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bc2;
$custom-light: #c5a2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bc2",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 194
  },
  "hsl": {
    "h": 280.563,
    "s": 36.788,
    "l": 62.157
  },
  "oklch": {
    "l": 0.65671,
    "c": 0.11498,
    "h": 314.3
  },
  "luminance": 0.26719
}

Semantic roles & 50–950 ramp

primary
#AB7BC2
secondary
#C8D9BF
accent
#B0365D
background
#FCFAFD
surface
#F8F3FA
border
#D1CDD3
text
#130F14
muted
#827F83

Preview Lab

Preview with #AB7BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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