#AB5CD7#AB5CD7

#AB5CD7 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.9% C 0.190 H 311.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AB5CD7
RGBrgb(171, 92, 215)
HSLhsl(279, 61%, 60%)
HSVhsv(279, 57%, 84%)
CMYKcmyk(20.5%, 57.2%, 0%, 15.7%)
CIE-LABlab(53.19, 52.79, -50.52)
CIE-LCHlch(53.19, 73.06, 316.26°)
OKLaboklab(61.89% 0.1265 -0.1417)
OKLCHoklch(61.89% 0.19 311.8)
XYZxyz(32.8853, 21.2193, 66.6402)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CD7 #88D75C
analogous
#6E5CD7 #AB5CD7 #D75CC5
triadic
#AB5CD7 #D7AB5C #5CD7AB
tetradic
#AB5CD7 #D76E5C #88D75C #5CC5D7
square
#AB5CD7 #D76E5C #88D75C #5CC5D7
split-complementary
#AB5CD7 #C5D75C #5CD76E
monochromatic
#6C2494 #9030C5 #AB5CD7 #C48DE3 #DEBEEF

Accessibility & contrast

On white

4.00
#AB5CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AB5CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CD7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CD7#FFFFFF#000000##000000
##AB5CD71.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#357BDB
Deuteranopia (green-blind)
#5381D4
Tritanopia (blue-blind)
#A67291
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5cd7;
/* rgb */ color: rgb(171, 92, 215);
/* oklch */ color: oklch(61.9% 0.190 311.8);
Tailwind
colors: {
  custom: {
    50: '#c78ee4',
    500: '#ab5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cd7;
$custom-light: #c78ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cd7",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 278.537,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61888,
    "c": 0.19001,
    "h": 311.8
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#AB5CD7
secondary
#C1DFB0
accent
#C81D5A
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C15
muted
#827D84

Preview Lab

Preview with #AB5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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