#AB45BB#AB45BB

#AB45BB is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.3% C 0.196 H 322.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AB45BB
RGBrgb(171, 69, 187)
HSLhsl(292, 46%, 50%)
HSVhsv(292, 63%, 73%)
CMYKcmyk(8.6%, 63.1%, 0%, 26.7%)
CIE-LABlab(47.63, 58.00, -43.27)
CIE-LCHlch(47.63, 72.36, 323.28°)
OKLaboklab(57.34% 0.1543 -0.1205)
OKLCHoklch(57.34% 0.196 322)
XYZxyz(27.8914, 16.5035, 48.7204)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45BB #55BB45
analogous
#7045BB #AB45BB #BB4590
triadic
#AB45BB #BBAB45 #45BBAB
tetradic
#AB45BB #BB7045 #55BB45 #4590BB
square
#AB45BB #BB7045 #55BB45 #4590BB
split-complementary
#AB45BB #90BB45 #45BB70
monochromatic
#592462 #82348F #AB45BB #BF72CB #D39FDC

Accessibility & contrast

On white

4.88
#AB45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AB45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45BB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45BB#FFFFFF#000000##FFFFFF
##AB45BB1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABF
Deuteranopia (green-blind)
#5375B8
Tritanopia (blue-blind)
#AD587A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab45bb;
/* rgb */ color: rgb(171, 69, 187);
/* oklch */ color: oklch(57.3% 0.196 322.0);
Tailwind
colors: {
  custom: {
    50: '#c77fd0',
    500: '#ab45bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab45bb;
$custom-light: #c77fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45bb",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 291.864,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.19573,
    "h": 322
  },
  "luminance": 0.16502
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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