#AB7FAC#AB7FAC

#AB7FAC is a light, moderate purple. Relative luminance 0.268; OKLCH L 65.5% C 0.083 H 325.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#AB7FAC
RGBrgb(171, 127, 172)
HSLhsl(299, 21%, 59%)
HSVhsv(299, 26%, 67%)
CMYKcmyk(0.6%, 26.2%, 0%, 32.5%)
CIE-LABlab(58.80, 24.79, -17.22)
CIE-LCHlch(58.80, 30.18, 325.22°)
OKLaboklab(65.46% 0.0682 -0.0465)
OKLCHoklch(65.46% 0.083 325.7)
XYZxyz(31.8296, 26.8162, 42.5211)
Luminance0.2681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FAC #80AC7F
analogous
#947FAC #AB7FAC #AC7F96
triadic
#AB7FAC #ACAB7F #7FACAB
tetradic
#AB7FAC #AC947F #80AC7F #7F96AC
square
#AB7FAC #AC947F #80AC7F #7F96AC
split-complementary
#AB7FAC #96AC7F #7FAC94
monochromatic
#6A456B #8F5E90 #AB7FAC #C3A4C4 #DCC9DC

Accessibility & contrast

On white

3.30
#AB7FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#AB7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7FAC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FAC#FFFFFF#000000##000000
##AB7FAC1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8AAE
Deuteranopia (green-blind)
#868FAA
Tritanopia (blue-blind)
#AE838F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ab7fac;
/* rgb */ color: rgb(171, 127, 172);
/* oklch */ color: oklch(65.5% 0.083 325.7);
Tailwind
colors: {
  custom: {
    50: '#c4a4c4',
    500: '#ab7fac',
    950: '#000000',
  },
}
SCSS
$custom: #ab7fac;
$custom-light: #c4a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7fac",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 298.667,
    "s": 21.327,
    "l": 58.627
  },
  "oklch": {
    "l": 0.65458,
    "c": 0.08256,
    "h": 325.7
  },
  "luminance": 0.26815
}

Semantic roles & 50–950 ramp

primary
#AB7FAC
secondary
#BBCCBB
accent
#BE6A6C
background
#FCFAFC
surface
#F8F4F8
border
#D1CED1
text
#130F12
muted
#827F81

Preview Lab

Preview with #AB7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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