#AB58DC#AB58DC

#AB58DC is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.7% C 0.201 H 310.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AB58DC
RGBrgb(171, 88, 220)
HSLhsl(278, 65%, 60%)
HSVhsv(278, 60%, 86%)
CMYKcmyk(22.3%, 60%, 0%, 13.7%)
CIE-LABlab(52.74, 55.86, -54.07)
CIE-LCHlch(52.74, 77.74, 315.93°)
OKLaboklab(61.65% 0.1316 -0.1521)
OKLCHoklch(61.65% 0.201 310.9)
XYZxyz(33.2002, 20.8054, 69.9632)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB58DC #89DC58
analogous
#6958DC #AB58DC #DC58CB
triadic
#AB58DC #DCAB58 #58DCAB
tetradic
#AB58DC #DC6958 #89DC58 #58CBDC
square
#AB58DC #DC6958 #89DC58 #58CBDC
split-complementary
#AB58DC #CBDC58 #58DC69
monochromatic
#6C2099 #902BCC #AB58DC #C48BE7 #DEBDF1

Accessibility & contrast

On white

4.07
#AB58DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AB58DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB58DC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB58DC#FFFFFF#000000##000000
##AB58DC1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#257AE0
Deuteranopia (green-blind)
#4B7FD9
Tritanopia (blue-blind)
#A57192
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab58dc;
/* rgb */ color: rgb(171, 88, 220);
/* oklch */ color: oklch(61.7% 0.201 310.9);
Tailwind
colors: {
  custom: {
    50: '#c78be7',
    500: '#ab58dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab58dc;
$custom-light: #c78be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab58dc",
  "rgb": {
    "r": 171,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 277.727,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6165,
    "c": 0.20114,
    "h": 310.9
  },
  "luminance": 0.20805
}

Semantic roles & 50–950 ramp

primary
#AB58DC
secondary
#C1E1AF
accent
#CD185B
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB58DC

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

Preview Lab → · Contrast checker → · Palette generator →

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