#AB46A2#AB46A2

#AB46A2 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.1% C 0.172 H 331.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB46A2
RGBrgb(171, 70, 162)
HSLhsl(305, 42%, 47%)
HSVhsv(305, 59%, 67%)
CMYKcmyk(0%, 59.1%, 5.3%, 32.9%)
CIE-LABlab(46.51, 53.07, -30.33)
CIE-LCHlch(46.51, 61.12, 330.25°)
OKLaboklab(56.11% 0.1511 -0.0831)
OKLCHoklch(56.11% 0.172 331.2)
XYZxyz(25.5062, 15.6487, 35.8525)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46A2 #46AB4F
analogous
#8246AB #AB46A2 #AB466F
triadic
#AB46A2 #A2AB46 #46A2AB
tetradic
#AB46A2 #AB8246 #46AB4F #466FAB
square
#AB46A2 #AB8246 #46AB4F #466FAB
split-complementary
#AB46A2 #6FAB46 #46AB82
monochromatic
#542250 #803479 #AB46A2 #C36CBB #D497CF

Accessibility & contrast

On white

5.09
#AB46A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AB46A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB46A2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46A2#FFFFFF#000000##FFFFFF
##AB46A21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#61739F
Tritanopia (blue-blind)
#B14F6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab46a2;
/* rgb */ color: rgb(171, 70, 162);
/* oklch */ color: oklch(56.1% 0.172 331.2);
Tailwind
colors: {
  custom: {
    50: '#c77fbe',
    500: '#ab46a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab46a2;
$custom-light: #c77fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46a2",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 162
  },
  "hsl": {
    "h": 305.347,
    "s": 41.909,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5611,
    "c": 0.1724,
    "h": 331.2
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#AB46A2
secondary
#8CC091
accent
#D26156
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB46A2

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

Preview Lab → · Contrast checker → · Palette generator →

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