#AB46BC#AB46BC

#AB46BC is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.195 H 321.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AB46BC
RGBrgb(171, 70, 188)
HSLhsl(291, 47%, 51%)
HSVhsv(291, 63%, 74%)
CMYKcmyk(9%, 62.8%, 0%, 26.3%)
CIE-LABlab(47.84, 57.75, -43.51)
CIE-LCHlch(47.84, 72.31, 323.00°)
OKLaboklab(57.51% 0.1531 -0.1212)
OKLCHoklch(57.51% 0.195 321.6)
XYZxyz(28.0609, 16.6705, 49.3069)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46BC #57BC46
analogous
#7046BC #AB46BC #BC4692
triadic
#AB46BC #BCAB46 #46BCAB
tetradic
#AB46BC #BC7046 #57BC46 #4692BC
square
#AB46BC #BC7046 #57BC46 #4692BC
split-complementary
#AB46BC #92BC46 #46BC70
monochromatic
#5A2464 #833490 #AB46BC #BF73CC #D4A0DD

Accessibility & contrast

On white

4.85
#AB46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AB46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB46BC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46BC#FFFFFF#000000##FFFFFF
##AB46BC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6AC0
Deuteranopia (green-blind)
#5475B9
Tritanopia (blue-blind)
#AD597B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab46bc;
/* rgb */ color: rgb(171, 70, 188);
/* oklch */ color: oklch(57.5% 0.195 321.6);
Tailwind
colors: {
  custom: {
    50: '#c780d1',
    500: '#ab46bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab46bc;
$custom-light: #c780d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46bc",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 291.356,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57512,
    "c": 0.19525,
    "h": 321.6
  },
  "luminance": 0.16669
}

Semantic roles & 50–950 ramp

primary
#AB46BC
secondary
#9CC995
accent
#D65165
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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