#AB45AA#AB45AA

#AB45AA is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.4% C 0.181 H 328.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AB45AA
RGBrgb(171, 69, 170)
HSLhsl(301, 43%, 47%)
HSVhsv(301, 60%, 67%)
CMYKcmyk(0%, 59.6%, 0.6%, 32.9%)
CIE-LABlab(46.73, 54.90, -34.71)
CIE-LCHlch(46.73, 64.96, 327.70°)
OKLaboklab(56.4% 0.1533 -0.0957)
OKLCHoklch(56.4% 0.181 328)
XYZxyz(26.1780, 15.8181, 39.6968)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45AA #45AB46
analogous
#7945AB #AB45AA #AB4577
triadic
#AB45AA #AAAB45 #45AAAB
tetradic
#AB45AA #AB7945 #45AB46 #4577AB
square
#AB45AA #AB7945 #45AB46 #4577AB
split-complementary
#AB45AA #77AB45 #45AB79
monochromatic
#542253 #7F337F #AB45AA #C36AC2 #D596D4

Accessibility & contrast

On white

5.04
#AB45AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#AB45AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45AA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45AA#FFFFFF#000000##FFFFFF
##AB45AA1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#5D74A7
Tritanopia (blue-blind)
#B05171
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab45aa;
/* rgb */ color: rgb(171, 69, 170);
/* oklch */ color: oklch(56.4% 0.181 328.0);
Tailwind
colors: {
  custom: {
    50: '#c77fc3',
    500: '#ab45aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab45aa;
$custom-light: #c77fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45aa",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 300.588,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.18067,
    "h": 328
  },
  "luminance": 0.15816
}

Semantic roles & 50–950 ramp

primary
#AB45AA
secondary
#8BC08C
accent
#D25756
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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