#AB45AF#AB45AF

#AB45AF is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.7% C 0.185 H 326.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB45AF
RGBrgb(171, 69, 175)
HSLhsl(298, 43%, 48%)
HSVhsv(298, 61%, 69%)
CMYKcmyk(2.3%, 60.6%, 0%, 31.4%)
CIE-LABlab(46.99, 55.80, -37.26)
CIE-LCHlch(46.99, 67.09, 326.27°)
OKLaboklab(56.67% 0.1537 -0.103)
OKLCHoklch(56.67% 0.185 326.2)
XYZxyz(26.6600, 16.0109, 42.2353)
Luminance0.1601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45AF #49AF45
analogous
#7645AF #AB45AF #AF457E
triadic
#AB45AF #AFAB45 #45AFAB
tetradic
#AB45AF #AF7645 #49AF45 #457EAF
square
#AB45AF #AF7645 #49AF45 #457EAF
split-complementary
#AB45AF #7EAF45 #45AF76
monochromatic
#552257 #803483 #AB45AF #C26CC5 #D498D6

Accessibility & contrast

On white

5.00
#AB45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AB45AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45AF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45AF#FFFFFF#000000##FFFFFF
##AB45AF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#5A74AC
Tritanopia (blue-blind)
#AF5374
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab45af;
/* rgb */ color: rgb(171, 69, 175);
/* oklch */ color: oklch(56.7% 0.185 326.2);
Tailwind
colors: {
  custom: {
    50: '#c77fc7',
    500: '#ab45af',
    950: '#000000',
  },
}
SCSS
$custom: #ab45af;
$custom-light: #c77fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45af",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 297.736,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56668,
    "c": 0.18501,
    "h": 326.2
  },
  "luminance": 0.16009
}

Semantic roles & 50–950 ramp

primary
#AB45AF
secondary
#8FC28D
accent
#D35559
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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