#AB4EAF#AB4EAF

#AB4EAF is a mid, vivid purple. Relative luminance 0.172; OKLCH L 57.8% C 0.172 H 325.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB4EAF
RGBrgb(171, 78, 175)
HSLhsl(298, 38%, 50%)
HSVhsv(298, 55%, 69%)
CMYKcmyk(2.3%, 55.4%, 0%, 31.4%)
CIE-LABlab(48.52, 51.64, -34.85)
CIE-LCHlch(48.52, 62.30, 325.98°)
OKLaboklab(57.78% 0.1421 -0.0961)
OKLCHoklch(57.78% 0.172 325.9)
XYZxyz(27.2563, 17.2034, 42.4341)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EAF #52AF4E
analogous
#7B4EAF #AB4EAF #AF4E83
triadic
#AB4EAF #AFAB4E #4EAFAB
tetradic
#AB4EAF #AF7B4E #52AF4E #4E83AF
square
#AB4EAF #AF7B4E #52AF4E #4E83AF
split-complementary
#AB4EAF #83AF4E #4EAF7B
monochromatic
#58285A #823B85 #AB4EAF #C078C3 #D3A2D6

Accessibility & contrast

On white

4.73
#AB4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AB4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EAF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EAF#FFFFFF#000000##FFFFFF
##AB4EAF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426CB2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#AF5A77
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4eaf;
/* rgb */ color: rgb(171, 78, 175);
/* oklch */ color: oklch(57.8% 0.172 325.9);
Tailwind
colors: {
  custom: {
    50: '#c684c7',
    500: '#ab4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eaf;
$custom-light: #c684c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eaf",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 297.526,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57783,
    "c": 0.17154,
    "h": 325.9
  },
  "luminance": 0.17202
}

Semantic roles & 50–950 ramp

primary
#AB4EAF
secondary
#98C396
accent
#CE5A5E
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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