#AB46BA#AB46BA

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

Color values

HEX#AB46BA
RGBrgb(171, 70, 186)
HSLhsl(292, 46%, 50%)
HSVhsv(292, 62%, 73%)
CMYKcmyk(8.1%, 62.4%, 0%, 27.1%)
CIE-LABlab(47.73, 57.37, -42.52)
CIE-LCHlch(47.73, 71.41, 323.46°)
OKLaboklab(57.4% 0.153 -0.1183)
OKLCHoklch(57.4% 0.193 322.3)
XYZxyz(27.8468, 16.5849, 48.1793)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46BA #55BA46
analogous
#7146BA #AB46BA #BA468F
triadic
#AB46BA #BAAB46 #46BAAB
tetradic
#AB46BA #BA7146 #55BA46 #468FBA
square
#AB46BA #BA7146 #55BA46 #468FBA
split-complementary
#AB46BA #8FBA46 #46BA71
monochromatic
#592461 #82358E #AB46BA #BF73CB #D39FDB

Accessibility & contrast

On white

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

On black

4.32
#AB46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB46BA#FFFFFF#000000##FFFFFF
##AB46BA1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#AD587A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab46ba;
/* rgb */ color: rgb(171, 70, 186);
/* oklch */ color: oklch(57.4% 0.193 322.3);
Tailwind
colors: {
  custom: {
    50: '#c780cf',
    500: '#ab46ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab46ba;
$custom-light: #c780cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46ba",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 292.241,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57398,
    "c": 0.19343,
    "h": 322.3
  },
  "luminance": 0.16583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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