#AB45A2#AB45A2

#AB45A2 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.0% C 0.174 H 331.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB45A2
RGBrgb(171, 69, 162)
HSLhsl(305, 43%, 47%)
HSVhsv(305, 60%, 67%)
CMYKcmyk(0%, 59.6%, 5.3%, 32.9%)
CIE-LABlab(46.34, 53.52, -30.59)
CIE-LCHlch(46.34, 61.64, 330.25°)
OKLaboklab(55.99% 0.1524 -0.0838)
OKLCHoklch(55.99% 0.174 331.2)
XYZxyz(25.4442, 15.5246, 35.8318)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45A2 #45AB4E
analogous
#8145AB #AB45A2 #AB456F
triadic
#AB45A2 #A2AB45 #45A2AB
tetradic
#AB45A2 #AB8145 #45AB4E #456FAB
square
#AB45A2 #AB8145 #45AB4E #456FAB
split-complementary
#AB45A2 #6FAB45 #45AB81
monochromatic
#54224F #7F3379 #AB45A2 #C36ABB #D596CF

Accessibility & contrast

On white

5.12
#AB45A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AB45A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45A2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45A2#FFFFFF#000000##FFFFFF
##AB45A21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab45a2;
/* rgb */ color: rgb(171, 69, 162);
/* oklch */ color: oklch(56.0% 0.174 331.2);
Tailwind
colors: {
  custom: {
    50: '#c77fbe',
    500: '#ab45a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab45a2;
$custom-light: #c77fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45a2",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 305.294,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55989,
    "c": 0.17389,
    "h": 331.2
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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