#AB7ACC#AB7ACC

#AB7ACC is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.0% C 0.129 H 310.7°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AB7ACC
RGBrgb(171, 122, 204)
HSLhsl(276, 45%, 64%)
HSVhsv(276, 40%, 80%)
CMYKcmyk(16.2%, 40.2%, 0%, 20%)
CIE-LABlab(58.92, 34.27, -35.25)
CIE-LCHlch(58.92, 49.16, 314.20°)
OKLaboklab(65.97% 0.084 -0.0976)
OKLCHoklch(65.97% 0.129 310.7)
XYZxyz(34.6513, 26.9372, 60.4890)
Luminance0.2694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7ACC #9BCC7A
analogous
#827ACC #AB7ACC #CC7AC4
triadic
#AB7ACC #CCAB7A #7ACCAB
tetradic
#AB7ACC #CC827A #9BCC7A #7AC4CC
square
#AB7ACC #CC827A #9BCC7A #7AC4CC
split-complementary
#AB7ACC #C4CC7A #7ACC82
monochromatic
#6F3893 #8F4EBB #AB7ACC #C7A6DD #E3D2EE

Accessibility & contrast

On white

3.29
#AB7ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#AB7ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7ACC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7ACC#FFFFFF#000000##000000
##AB7ACC1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8BCF
Deuteranopia (green-blind)
#758FCA
Tritanopia (blue-blind)
#A78699
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab7acc;
/* rgb */ color: rgb(171, 122, 204);
/* oklch */ color: oklch(66.0% 0.129 310.7);
Tailwind
colors: {
  custom: {
    50: '#c5a1dc',
    500: '#ab7acc',
    950: '#000000',
  },
}
SCSS
$custom: #ab7acc;
$custom-light: #c5a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7acc",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 204
  },
  "hsl": {
    "h": 275.854,
    "s": 44.565,
    "l": 63.922
  },
  "oklch": {
    "l": 0.65966,
    "c": 0.12874,
    "h": 310.7
  },
  "luminance": 0.26937
}

Semantic roles & 50–950 ramp

primary
#AB7ACC
secondary
#CEDFC3
accent
#B82E65
background
#FCFAFD
surface
#F8F3FB
border
#D1CDD4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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