#AB7BCA#AB7BCA

#AB7BCA is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.0% C 0.125 H 311.2°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AB7BCA
RGBrgb(171, 123, 202)
HSLhsl(276, 43%, 64%)
HSVhsv(276, 39%, 79%)
CMYKcmyk(15.3%, 39.1%, 0%, 20.8%)
CIE-LABlab(59.06, 33.27, -33.90)
CIE-LCHlch(59.06, 47.50, 314.47°)
OKLaboklab(66.04% 0.0821 -0.0937)
OKLCHoklch(66.04% 0.125 311.2)
XYZxyz(34.5363, 27.0887, 59.2749)
Luminance0.2709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BCA #9ACA7B
analogous
#837BCA #AB7BCA #CA7BC1
triadic
#AB7BCA #CAAB7B #7BCAAB
tetradic
#AB7BCA #CA837B #9ACA7B #7BC1CA
square
#AB7BCA #CA837B #9ACA7B #7BC1CA
split-complementary
#AB7BCA #C1CA7B #7BCA83
monochromatic
#6F3A91 #8F4FB8 #AB7BCA #C7A7DC #E3D2ED

Accessibility & contrast

On white

3.27
#AB7BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#AB7BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BCA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BCA#FFFFFF#000000##000000
##AB7BCA1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCD
Deuteranopia (green-blind)
#778FC8
Tritanopia (blue-blind)
#A88699
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab7bca;
/* rgb */ color: rgb(171, 123, 202);
/* oklch */ color: oklch(66.0% 0.125 311.2);
Tailwind
colors: {
  custom: {
    50: '#c5a2da',
    500: '#ab7bca',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bca;
$custom-light: #c5a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bca",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 202
  },
  "hsl": {
    "h": 276.456,
    "s": 42.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.66043,
    "c": 0.1246,
    "h": 311.2
  },
  "luminance": 0.27088
}

Semantic roles & 50–950 ramp

primary
#AB7BCA
secondary
#CDDEC2
accent
#B63064
background
#FCFAFD
surface
#F8F3FA
border
#D1CDD3
text
#130F15
muted
#827F83

Preview Lab

Preview with #AB7BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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