#AB5ECC#AB5ECC

#AB5ECC is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.5% C 0.175 H 314.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AB5ECC
RGBrgb(171, 94, 204)
HSLhsl(282, 52%, 58%)
HSVhsv(282, 54%, 80%)
CMYKcmyk(16.2%, 53.9%, 0%, 20%)
CIE-LABlab(52.98, 49.42, -44.59)
CIE-LCHlch(52.98, 66.56, 317.94°)
OKLaboklab(61.54% 0.1233 -0.1245)
OKLCHoklch(61.54% 0.175 314.7)
XYZxyz(31.6946, 21.0239, 59.5035)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5ECC #7FCC5E
analogous
#745ECC #AB5ECC #CC5EB6
triadic
#AB5ECC #CCAB5E #5ECCAB
tetradic
#AB5ECC #CC745E #7FCC5E #5EB6CC
square
#AB5ECC #CC745E #7FCC5E #5EB6CC
split-complementary
#AB5ECC #B6CC5E #5ECC74
monochromatic
#6A2A85 #8F39B4 #AB5ECC #C38CDB #DBBBE9

Accessibility & contrast

On white

4.03
#AB5ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AB5ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5ECC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5ECC#FFFFFF#000000##000000
##AB5ECC1.004.035.205.20
#FFFFFF4.031.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#437AD0
Deuteranopia (green-blind)
#5D81C9
Tritanopia (blue-blind)
#A9708C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5ecc;
/* rgb */ color: rgb(171, 94, 204);
/* oklch */ color: oklch(61.5% 0.175 314.7);
Tailwind
colors: {
  custom: {
    50: '#c68fdc',
    500: '#ab5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ecc;
$custom-light: #c68fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ecc",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 282,
    "s": 51.887,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61539,
    "c": 0.17522,
    "h": 314.7
  },
  "luminance": 0.21023
}

Semantic roles & 50–950 ramp

primary
#AB5ECC
secondary
#BAD9AD
accent
#DB4C77
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AB5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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