#AB5ADC#AB5ADC

#AB5ADC is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.9% C 0.198 H 310.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB5ADC
RGBrgb(171, 90, 220)
HSLhsl(277, 65%, 61%)
HSVhsv(277, 59%, 86%)
CMYKcmyk(22.3%, 59.1%, 0%, 13.7%)
CIE-LABlab(53.10, 54.87, -53.49)
CIE-LCHlch(53.10, 76.63, 315.73°)
OKLaboklab(61.92% 0.1291 -0.1504)
OKLCHoklch(61.92% 0.198 310.6)
XYZxyz(33.3666, 21.1383, 70.0186)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5ADC #8BDC5A
analogous
#6A5ADC #AB5ADC #DC5ACC
triadic
#AB5ADC #DCAB5A #5ADCAB
tetradic
#AB5ADC #DC6A5A #8BDC5A #5ACCDC
square
#AB5ADC #DC6A5A #8BDC5A #5ACCDC
split-complementary
#AB5ADC #CCDC5A #5ADC6A
monochromatic
#6D219B #902CCD #AB5ADC #C58CE7 #DEBFF1

Accessibility & contrast

On white

4.02
#AB5ADC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AB5ADC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5ADC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5ADC#FFFFFF#000000##000000
##AB5ADC1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7BE0
Deuteranopia (green-blind)
#4D80D9
Tritanopia (blue-blind)
#A57293
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5adc;
/* rgb */ color: rgb(171, 90, 220);
/* oklch */ color: oklch(61.9% 0.198 310.6);
Tailwind
colors: {
  custom: {
    50: '#c78ce7',
    500: '#ab5adc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5adc;
$custom-light: #c78ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5adc",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 220
  },
  "hsl": {
    "h": 277.385,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61915,
    "c": 0.19825,
    "h": 310.6
  },
  "luminance": 0.21138
}

Semantic roles & 50–950 ramp

primary
#AB5ADC
secondary
#C3E2B0
accent
#CD195D
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB5ADC

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

Preview Lab → · Contrast checker → · Palette generator →

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