#AB45B2#AB45B2

#AB45B2 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.188 H 325.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB45B2
RGBrgb(171, 69, 178)
HSLhsl(296, 44%, 48%)
HSVhsv(296, 61%, 70%)
CMYKcmyk(3.9%, 61.2%, 0%, 30.2%)
CIE-LABlab(47.14, 56.34, -38.77)
CIE-LCHlch(47.14, 68.39, 325.46°)
OKLaboklab(56.83% 0.1539 -0.1074)
OKLCHoklch(56.83% 0.188 325.1)
XYZxyz(26.9580, 16.1301, 43.8043)
Luminance0.1613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45B2 #4CB245
analogous
#7445B2 #AB45B2 #B24582
triadic
#AB45B2 #B2AB45 #45B2AB
tetradic
#AB45B2 #B27445 #4CB245 #4582B2
square
#AB45B2 #B27445 #4CB245 #4582B2
split-complementary
#AB45B2 #82B245 #45B274
monochromatic
#56235A #813486 #AB45B2 #C16EC7 #D49AD8

Accessibility & contrast

On white

4.97
#AB45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AB45B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45B2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45B2#FFFFFF#000000##FFFFFF
##AB45B21.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#5974AF
Tritanopia (blue-blind)
#AF5475
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab45b2;
/* rgb */ color: rgb(171, 69, 178);
/* oklch */ color: oklch(56.8% 0.188 325.1);
Tailwind
colors: {
  custom: {
    50: '#c77fc9',
    500: '#ab45b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab45b2;
$custom-light: #c77fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45b2",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 296.147,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56832,
    "c": 0.18766,
    "h": 325.1
  },
  "luminance": 0.16129
}

Semantic roles & 50–950 ramp

primary
#AB45B2
secondary
#92C48F
accent
#D4545C
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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