#AB46BB#AB46BB

#AB46BB is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.5% C 0.194 H 322.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB46BB
RGBrgb(171, 70, 187)
HSLhsl(292, 46%, 50%)
HSVhsv(292, 63%, 73%)
CMYKcmyk(8.6%, 62.6%, 0%, 26.7%)
CIE-LABlab(47.79, 57.56, -43.02)
CIE-LCHlch(47.79, 71.86, 323.23°)
OKLaboklab(57.46% 0.1531 -0.1197)
OKLCHoklch(57.46% 0.194 322)
XYZxyz(27.9534, 16.6275, 48.7411)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46BB #56BB46
analogous
#7046BB #AB46BB #BB4690
triadic
#AB46BB #BBAB46 #46BBAB
tetradic
#AB46BB #BB7046 #56BB46 #4690BB
square
#AB46BB #BB7046 #56BB46 #4690BB
split-complementary
#AB46BB #90BB46 #46BB70
monochromatic
#5A2462 #83358F #AB46BB #BF73CB #D4A0DC

Accessibility & contrast

On white

4.86
#AB46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB46BB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46BB#FFFFFF#000000##FFFFFF
##AB46BB1.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6ABF
Deuteranopia (green-blind)
#5475B8
Tritanopia (blue-blind)
#AD587A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab46bb;
/* rgb */ color: rgb(171, 70, 187);
/* oklch */ color: oklch(57.5% 0.194 322.0);
Tailwind
colors: {
  custom: {
    50: '#c780d0',
    500: '#ab46bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab46bb;
$custom-light: #c780d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46bb",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 291.795,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57455,
    "c": 0.19433,
    "h": 322
  },
  "luminance": 0.16626
}

Semantic roles & 50–950 ramp

primary
#AB46BB
secondary
#9BC894
accent
#D65264
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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