#AB7FC2#AB7FC2

#AB7FC2 is a light, moderate violet. Relative luminance 0.277; OKLCH L 66.4% C 0.108 H 313.6°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#AB7FC2
RGBrgb(171, 127, 194)
HSLhsl(279, 35%, 63%)
HSVhsv(279, 35%, 76%)
CMYKcmyk(11.9%, 34.5%, 0%, 23.9%)
CIE-LABlab(59.65, 29.29, -28.45)
CIE-LCHlch(59.65, 40.84, 315.83°)
OKLaboklab(66.38% 0.0744 -0.0781)
OKLCHoklch(66.38% 0.108 313.6)
XYZxyz(34.1200, 27.7323, 54.5839)
Luminance0.2773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FC2 #96C27F
analogous
#897FC2 #AB7FC2 #C27FB7
triadic
#AB7FC2 #C2AB7F #7FC2AB
tetradic
#AB7FC2 #C2897F #96C27F #7FB7C2
square
#AB7FC2 #C2897F #96C27F #7FB7C2
split-complementary
#AB7FC2 #B7C27F #7FC289
monochromatic
#6E4087 #9056AE #AB7FC2 #C6A8D6 #E1D2EA

Accessibility & contrast

On white

3.21
#AB7FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#AB7FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7FC2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FC2#FFFFFF#000000##000000
##AB7FC21.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#748DC5
Deuteranopia (green-blind)
#7E91C0
Tritanopia (blue-blind)
#A98898
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab7fc2;
/* rgb */ color: rgb(171, 127, 194);
/* oklch */ color: oklch(66.4% 0.108 313.6);
Tailwind
colors: {
  custom: {
    50: '#c5a4d4',
    500: '#ab7fc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7fc2;
$custom-light: #c5a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7fc2",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 194
  },
  "hsl": {
    "h": 279.403,
    "s": 35.45,
    "l": 62.941
  },
  "oklch": {
    "l": 0.66378,
    "c": 0.10788,
    "h": 313.6
  },
  "luminance": 0.27732
}

Semantic roles & 50–950 ramp

primary
#AB7FC2
secondary
#CBDAC2
accent
#AE3760
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F14
muted
#827F83

Preview Lab

Preview with #AB7FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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