#AB45BC#AB45BC

#AB45BC is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.197 H 321.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB45BC
RGBrgb(171, 69, 188)
HSLhsl(291, 47%, 50%)
HSVhsv(291, 63%, 74%)
CMYKcmyk(9%, 63.3%, 0%, 26.3%)
CIE-LABlab(47.68, 58.19, -43.76)
CIE-LCHlch(47.68, 72.81, 323.05°)
OKLaboklab(57.4% 0.1543 -0.1219)
OKLCHoklch(57.4% 0.197 321.7)
XYZxyz(27.9988, 16.5464, 49.2862)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45BC #56BC45
analogous
#7045BC #AB45BC #BC4591
triadic
#AB45BC #BCAB45 #45BCAB
tetradic
#AB45BC #BC7045 #56BC45 #4591BC
square
#AB45BC #BC7045 #56BC45 #4591BC
split-complementary
#AB45BC #91BC45 #45BC70
monochromatic
#5A2463 #833490 #AB45BC #BF72CC #D49FDC

Accessibility & contrast

On white

4.87
#AB45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AB45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45BC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45BC#FFFFFF#000000##FFFFFF
##AB45BC1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286AC0
Deuteranopia (green-blind)
#5375B9
Tritanopia (blue-blind)
#AD587A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab45bc;
/* rgb */ color: rgb(171, 69, 188);
/* oklch */ color: oklch(57.4% 0.197 321.7);
Tailwind
colors: {
  custom: {
    50: '#c77fd1',
    500: '#ab45bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab45bc;
$custom-light: #c77fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45bc",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 291.429,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57397,
    "c": 0.19663,
    "h": 321.7
  },
  "luminance": 0.16545
}

Semantic roles & 50–950 ramp

primary
#AB45BC
secondary
#9BC994
accent
#D75164
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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