#AB45BA#AB45BA

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

Color values

HEX#AB45BA
RGBrgb(171, 69, 186)
HSLhsl(292, 46%, 50%)
HSVhsv(292, 63%, 73%)
CMYKcmyk(8.1%, 62.9%, 0%, 27.1%)
CIE-LABlab(47.57, 57.81, -42.77)
CIE-LCHlch(47.57, 71.92, 323.50°)
OKLaboklab(57.28% 0.1542 -0.119)
OKLCHoklch(57.28% 0.195 322.3)
XYZxyz(27.7847, 16.4608, 48.1586)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45BA #54BA45
analogous
#7145BA #AB45BA #BA458E
triadic
#AB45BA #BAAB45 #45BAAB
tetradic
#AB45BA #BA7145 #54BA45 #458EBA
square
#AB45BA #BA7145 #54BA45 #458EBA
split-complementary
#AB45BA #8EBA45 #45BA71
monochromatic
#592461 #82348D #AB45BA #BF72CB #D39EDB

Accessibility & contrast

On white

4.89
#AB45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AB45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45BA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45BA#FFFFFF#000000##FFFFFF
##AB45BA1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BE
Deuteranopia (green-blind)
#5475B7
Tritanopia (blue-blind)
#AD5779
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab45ba;
/* rgb */ color: rgb(171, 69, 186);
/* oklch */ color: oklch(57.3% 0.195 322.3);
Tailwind
colors: {
  custom: {
    50: '#c77fcf',
    500: '#ab45ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab45ba;
$custom-light: #c77fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45ba",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 292.308,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.57282,
    "c": 0.19482,
    "h": 322.3
  },
  "luminance": 0.16459
}

Semantic roles & 50–950 ramp

primary
#AB45BA
secondary
#9AC893
accent
#D65263
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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