#AB46B2#AB46B2

#AB46B2 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.0% C 0.186 H 325.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB46B2
RGBrgb(171, 70, 178)
HSLhsl(296, 44%, 49%)
HSVhsv(296, 61%, 70%)
CMYKcmyk(3.9%, 60.7%, 0%, 30.2%)
CIE-LABlab(47.31, 55.89, -38.52)
CIE-LCHlch(47.31, 67.88, 325.43°)
OKLaboklab(56.95% 0.1527 -0.1067)
OKLCHoklch(56.95% 0.186 325.1)
XYZxyz(27.0200, 16.2542, 43.8250)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46B2 #4DB246
analogous
#7546B2 #AB46B2 #B24683
triadic
#AB46B2 #B2AB46 #46B2AB
tetradic
#AB46B2 #B27546 #4DB246 #4683B2
square
#AB46B2 #B27546 #4DB246 #4683B2
split-complementary
#AB46B2 #83B246 #46B275
monochromatic
#57235A #813586 #AB46B2 #C16FC6 #D49BD8

Accessibility & contrast

On white

4.94
#AB46B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AB46B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB46B2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46B2#FFFFFF#000000##FFFFFF
##AB46B21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#5975AF
Tritanopia (blue-blind)
#AF5576
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab46b2;
/* rgb */ color: rgb(171, 70, 178);
/* oklch */ color: oklch(57.0% 0.186 325.1);
Tailwind
colors: {
  custom: {
    50: '#c780c9',
    500: '#ab46b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab46b2;
$custom-light: #c780c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46b2",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 296.111,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.18623,
    "h": 325.1
  },
  "luminance": 0.16253
}

Semantic roles & 50–950 ramp

primary
#AB46B2
secondary
#93C490
accent
#D3555D
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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