#AB7DCA#AB7DCA

#AB7DCA is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.4% C 0.121 H 310.8°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#AB7DCA
RGBrgb(171, 125, 202)
HSLhsl(276, 42%, 64%)
HSVhsv(276, 38%, 79%)
CMYKcmyk(15.3%, 38.1%, 0%, 20.8%)
CIE-LABlab(59.52, 32.15, -33.18)
CIE-LCHlch(59.52, 46.20, 314.10°)
OKLaboklab(66.39% 0.0792 -0.0916)
OKLCHoklch(66.39% 0.121 310.8)
XYZxyz(34.7870, 27.5899, 59.3585)
Luminance0.2759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DCA #9CCA7D
analogous
#857DCA #AB7DCA #CA7DC3
triadic
#AB7DCA #CAAB7D #7DCAAB
tetradic
#AB7DCA #CA857D #9CCA7D #7DC3CA
square
#AB7DCA #CA857D #9CCA7D #7DC3CA
split-complementary
#AB7DCA #C3CA7D #7DCA85
monochromatic
#6F3B91 #8F52B8 #AB7DCA #C7A8DC #E3D4ED

Accessibility & contrast

On white

3.22
#AB7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#AB7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7DCA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DCA#FFFFFF#000000##000000
##AB7DCA1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8DCD
Deuteranopia (green-blind)
#7990C8
Tritanopia (blue-blind)
#A8889A
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ab7dca;
/* rgb */ color: rgb(171, 125, 202);
/* oklch */ color: oklch(66.4% 0.121 310.8);
Tailwind
colors: {
  custom: {
    50: '#c5a3da',
    500: '#ab7dca',
    950: '#000000',
  },
}
SCSS
$custom: #ab7dca;
$custom-light: #c5a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7dca",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 275.844,
    "s": 42.077,
    "l": 64.118
  },
  "oklch": {
    "l": 0.6639,
    "c": 0.12113,
    "h": 310.8
  },
  "luminance": 0.27589
}

Semantic roles & 50–950 ramp

primary
#AB7DCA
secondary
#CFDFC4
accent
#B53066
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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