#AB58D2#AB58D2

#AB58D2 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.1% C 0.191 H 313.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB58D2
RGBrgb(171, 88, 210)
HSLhsl(281, 58%, 58%)
HSVhsv(281, 58%, 82%)
CMYKcmyk(18.6%, 58.1%, 0%, 17.6%)
CIE-LABlab(52.17, 53.71, -49.30)
CIE-LCHlch(52.17, 72.91, 317.45°)
OKLaboklab(61.05% 0.1315 -0.1382)
OKLCHoklch(61.05% 0.191 313.6)
XYZxyz(31.9152, 20.2914, 63.1957)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB58D2 #7FD258
analogous
#6E58D2 #AB58D2 #D258BC
triadic
#AB58D2 #D2AB58 #58D2AB
tetradic
#AB58D2 #D26E58 #7FD258 #58BCD2
square
#AB58D2 #D26E58 #7FD258 #58BCD2
split-complementary
#AB58D2 #BCD258 #58D26E
monochromatic
#6A258A #8F32BB #AB58D2 #C388DF #DBB8EC

Accessibility & contrast

On white

4.15
#AB58D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AB58D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB58D2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB58D2#FFFFFF#000000##000000
##AB58D21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3378D6
Deuteranopia (green-blind)
#537ECF
Tritanopia (blue-blind)
#A76D8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab58d2;
/* rgb */ color: rgb(171, 88, 210);
/* oklch */ color: oklch(61.1% 0.191 313.6);
Tailwind
colors: {
  custom: {
    50: '#c78be0',
    500: '#ab58d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab58d2;
$custom-light: #c78be0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab58d2",
  "rgb": {
    "r": 171,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 280.82,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.6105,
    "c": 0.19072,
    "h": 313.6
  },
  "luminance": 0.20291
}

Semantic roles & 50–950 ramp

primary
#AB58D2
secondary
#BADBAB
accent
#E14778
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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