#AB58CB#AB58CB

#AB58CB is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.6% C 0.183 H 315.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB58CB
RGBrgb(171, 88, 203)
HSLhsl(283, 53%, 57%)
HSVhsv(283, 57%, 80%)
CMYKcmyk(15.8%, 56.7%, 0%, 20.4%)
CIE-LABlab(51.78, 52.24, -45.91)
CIE-LCHlch(51.78, 69.55, 318.69°)
OKLaboklab(60.65% 0.1312 -0.1283)
OKLCHoklch(60.65% 0.183 315.6)
XYZxyz(31.0621, 19.9502, 58.7028)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB58CB #78CB58
analogous
#7258CB #AB58CB #CB58B2
triadic
#AB58CB #CBAB58 #58CBAB
tetradic
#AB58CB #CB7258 #78CB58 #58B2CB
square
#AB58CB #CB7258 #78CB58 #58B2CB
split-complementary
#AB58CB #B2CB58 #58CB72
monochromatic
#682881 #8E37AF #AB58CB #C287DA #DAB5E8

Accessibility & contrast

On white

4.21
#AB58CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AB58CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB58CB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB58CB#FFFFFF#000000##000000
##AB58CB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A76CF
Deuteranopia (green-blind)
#587EC8
Tritanopia (blue-blind)
#A96B89
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab58cb;
/* rgb */ color: rgb(171, 88, 203);
/* oklch */ color: oklch(60.6% 0.183 315.6);
Tailwind
colors: {
  custom: {
    50: '#c78bdb',
    500: '#ab58cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab58cb;
$custom-light: #c78bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab58cb",
  "rgb": {
    "r": 171,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 283.304,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60645,
    "c": 0.18348,
    "h": 315.6
  },
  "luminance": 0.19949
}

Semantic roles & 50–950 ramp

primary
#AB58CB
secondary
#B5D7A8
accent
#DC4C74
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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