#AB45BD#AB45BD

#AB45BD is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.5% C 0.198 H 321.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB45BD
RGBrgb(171, 69, 189)
HSLhsl(291, 48%, 51%)
HSVhsv(291, 63%, 74%)
CMYKcmyk(9.5%, 63.5%, 0%, 25.9%)
CIE-LABlab(47.74, 58.38, -44.26)
CIE-LCHlch(47.74, 73.26, 322.83°)
OKLaboklab(57.46% 0.1543 -0.1233)
OKLCHoklch(57.46% 0.198 321.4)
XYZxyz(28.1070, 16.5897, 49.8559)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45BD #57BD45
analogous
#6F45BD #AB45BD #BD4593
triadic
#AB45BD #BDAB45 #45BDAB
tetradic
#AB45BD #BD6F45 #57BD45 #4593BD
square
#AB45BD #BD6F45 #57BD45 #4593BD
split-complementary
#AB45BD #93BD45 #45BD6F
monochromatic
#5A2464 #833491 #AB45BD #BF72CD #D49FDD

Accessibility & contrast

On white

4.86
#AB45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AB45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45BD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45BD#FFFFFF#000000##FFFFFF
##AB45BD1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276AC1
Deuteranopia (green-blind)
#5275BA
Tritanopia (blue-blind)
#AD587B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab45bd;
/* rgb */ color: rgb(171, 69, 189);
/* oklch */ color: oklch(57.5% 0.198 321.4);
Tailwind
colors: {
  custom: {
    50: '#c780d1',
    500: '#ab45bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab45bd;
$custom-light: #c780d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45bd",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 291,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57455,
    "c": 0.19755,
    "h": 321.4
  },
  "luminance": 0.16588
}

Semantic roles & 50–950 ramp

primary
#AB45BD
secondary
#9CCA94
accent
#D75165
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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