#AB4DAF#AB4DAF

#AB4DAF is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.7% C 0.173 H 325.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AB4DAF
RGBrgb(171, 77, 175)
HSLhsl(298, 39%, 49%)
HSVhsv(298, 56%, 69%)
CMYKcmyk(2.3%, 56%, 0%, 31.4%)
CIE-LABlab(48.34, 52.11, -35.13)
CIE-LCHlch(48.34, 62.85, 326.01°)
OKLaboklab(57.65% 0.1434 -0.0969)
OKLCHoklch(57.65% 0.173 325.9)
XYZxyz(27.1858, 17.0624, 42.4106)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DAF #51AF4D
analogous
#7A4DAF #AB4DAF #AF4D82
triadic
#AB4DAF #AFAB4D #4DAFAB
tetradic
#AB4DAF #AF7A4D #51AF4D #4D82AF
square
#AB4DAF #AF7A4D #51AF4D #4D82AF
split-complementary
#AB4DAF #82AF4D #4DAF7A
monochromatic
#58285A #813A85 #AB4DAF #C076C3 #D3A1D6

Accessibility & contrast

On white

4.76
#AB4DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AB4DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4DAF
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DAF#FFFFFF#000000##FFFFFF
##AB4DAF1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416BB2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#AF5977
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4daf;
/* rgb */ color: rgb(171, 77, 175);
/* oklch */ color: oklch(57.7% 0.173 325.9);
Tailwind
colors: {
  custom: {
    50: '#c684c7',
    500: '#ab4daf',
    950: '#000000',
  },
}
SCSS
$custom: #ab4daf;
$custom-light: #c684c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4daf",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 297.551,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57654,
    "c": 0.17309,
    "h": 325.9
  },
  "luminance": 0.17061
}

Semantic roles & 50–950 ramp

primary
#AB4DAF
secondary
#97C395
accent
#CF595E
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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