#AB45B9#AB45B9

#AB45B9 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.2% C 0.194 H 322.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB45B9
RGBrgb(171, 69, 185)
HSLhsl(293, 46%, 50%)
HSVhsv(293, 63%, 73%)
CMYKcmyk(7.6%, 62.7%, 0%, 27.5%)
CIE-LABlab(47.52, 57.63, -42.28)
CIE-LCHlch(47.52, 71.47, 323.74°)
OKLaboklab(57.23% 0.1542 -0.1176)
OKLCHoklch(57.23% 0.194 322.7)
XYZxyz(27.6788, 16.4184, 47.6007)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45B9 #53B945
analogous
#7145B9 #AB45B9 #B9458D
triadic
#AB45B9 #B9AB45 #45B9AB
tetradic
#AB45B9 #B97145 #53B945 #458DB9
square
#AB45B9 #B97145 #53B945 #458DB9
split-complementary
#AB45B9 #8DB945 #45B971
monochromatic
#592460 #82348C #AB45B9 #BF71CA #D39EDB

Accessibility & contrast

On white

4.90
#AB45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AB45B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45B9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45B9#FFFFFF#000000##FFFFFF
##AB45B91.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#5575B6
Tritanopia (blue-blind)
#AD5779
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab45b9;
/* rgb */ color: rgb(171, 69, 185);
/* oklch */ color: oklch(57.2% 0.194 322.7);
Tailwind
colors: {
  custom: {
    50: '#c77fce',
    500: '#ab45b9',
    950: '#000000',
  },
}
SCSS
$custom: #ab45b9;
$custom-light: #c77fce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45b9",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 292.759,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57225,
    "c": 0.19392,
    "h": 322.7
  },
  "luminance": 0.16417
}

Semantic roles & 50–950 ramp

primary
#AB45B9
secondary
#99C793
accent
#D55262
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB45B9

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

Preview Lab → · Contrast checker → · Palette generator →

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