#AB4ABA#AB4ABA

#AB4ABA is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.9% C 0.188 H 322.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB4ABA
RGBrgb(171, 74, 186)
HSLhsl(292, 45%, 51%)
HSVhsv(292, 60%, 73%)
CMYKcmyk(8.1%, 60.2%, 0%, 27.1%)
CIE-LABlab(48.39, 55.57, -41.48)
CIE-LCHlch(48.39, 69.35, 323.26°)
OKLaboklab(57.87% 0.1481 -0.1153)
OKLCHoklch(57.87% 0.188 322.1)
XYZxyz(28.1054, 17.1021, 48.2655)
Luminance0.1710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ABA #59BA4A
analogous
#734ABA #AB4ABA #BA4A91
triadic
#AB4ABA #BAAB4A #4ABAAB
tetradic
#AB4ABA #BA734A #59BA4A #4A91BA
square
#AB4ABA #BA734A #59BA4A #4A91BA
split-complementary
#AB4ABA #91BA4A #4ABA73
monochromatic
#5B2664 #843790 #AB4ABA #C076CB #D4A3DC

Accessibility & contrast

On white

4.75
#AB4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AB4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4ABA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ABA#FFFFFF#000000##FFFFFF
##AB4ABA1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336CBD
Deuteranopia (green-blind)
#5877B7
Tritanopia (blue-blind)
#AD5B7B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4aba;
/* rgb */ color: rgb(171, 74, 186);
/* oklch */ color: oklch(57.9% 0.188 322.1);
Tailwind
colors: {
  custom: {
    50: '#c782cf',
    500: '#ab4aba',
    950: '#000000',
  },
}
SCSS
$custom: #ab4aba;
$custom-light: #c782cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4aba",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 291.964,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57874,
    "c": 0.18772,
    "h": 322.1
  },
  "luminance": 0.17101
}

Semantic roles & 50–950 ramp

primary
#AB4ABA
secondary
#9EC997
accent
#D55365
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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