#AB4EB7#AB4EB7

#AB4EB7 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.2% C 0.179 H 323.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB4EB7
RGBrgb(171, 78, 183)
HSLhsl(293, 42%, 51%)
HSVhsv(293, 57%, 72%)
CMYKcmyk(6.6%, 57.4%, 0%, 28.2%)
CIE-LABlab(48.92, 53.14, -38.90)
CIE-LCHlch(48.92, 65.85, 323.79°)
OKLaboklab(58.21% 0.1428 -0.1078)
OKLCHoklch(58.21% 0.179 323)
XYZxyz(28.0654, 17.5270, 46.6953)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EB7 #5AB74E
analogous
#764EB7 #AB4EB7 #B74E8E
triadic
#AB4EB7 #B7AB4E #4EB7AB
tetradic
#AB4EB7 #B7764E #5AB74E #4E8EB7
square
#AB4EB7 #B7764E #5AB74E #4E8EB7
split-complementary
#AB4EB7 #8EB74E #4EB776
monochromatic
#5C2863 #843A8E #AB4EB7 #C07AC9 #D4A5DA

Accessibility & contrast

On white

4.66
#AB4EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AB4EB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EB7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EB7#FFFFFF#000000##FFFFFF
##AB4EB71.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#5C78B4
Tritanopia (blue-blind)
#AE5D7B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4eb7;
/* rgb */ color: rgb(171, 78, 183);
/* oklch */ color: oklch(58.2% 0.179 323.0);
Tailwind
colors: {
  custom: {
    50: '#c784cd',
    500: '#ab4eb7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eb7;
$custom-light: #c784cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eb7",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 293.143,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58208,
    "c": 0.17897,
    "h": 323
  },
  "luminance": 0.17526
}

Semantic roles & 50–950 ramp

primary
#AB4EB7
secondary
#9FC899
accent
#D25664
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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