#AB45B5#AB45B5

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

Color values

HEX#AB45B5
RGBrgb(171, 69, 181)
HSLhsl(295, 45%, 49%)
HSVhsv(295, 62%, 71%)
CMYKcmyk(5.5%, 61.9%, 0%, 29%)
CIE-LABlab(47.30, 56.89, -40.28)
CIE-LCHlch(47.30, 69.70, 324.70°)
OKLaboklab(57% 0.1541 -0.1118)
OKLCHoklch(57% 0.19 324)
XYZxyz(27.2625, 16.2519, 45.4080)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45B5 #4FB545
analogous
#7345B5 #AB45B5 #B54587
triadic
#AB45B5 #B5AB45 #45B5AB
tetradic
#AB45B5 #B57345 #4FB545 #4587B5
square
#AB45B5 #B57345 #4FB545 #4587B5
split-complementary
#AB45B5 #87B545 #45B573
monochromatic
#57235C #813489 #AB45B5 #C06FC8 #D49BD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB45B5#FFFFFF#000000##FFFFFF
##AB45B51.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)
#3068B8
Deuteranopia (green-blind)
#5774B2
Tritanopia (blue-blind)
#AE5577
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab45b5;
/* rgb */ color: rgb(171, 69, 181);
/* oklch */ color: oklch(57.0% 0.190 324.0);
Tailwind
colors: {
  custom: {
    50: '#c77fcb',
    500: '#ab45b5',
    950: '#000000',
  },
}
SCSS
$custom: #ab45b5;
$custom-light: #c77fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45b5",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 294.643,
    "s": 44.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56999,
    "c": 0.19033,
    "h": 324
  },
  "luminance": 0.1625
}

Semantic roles & 50–950 ramp

primary
#AB45B5
secondary
#95C591
accent
#D5535F
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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