#AB40CE#AB40CE

#AB40CE is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.219 H 316.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB40CE
RGBrgb(171, 64, 206)
HSLhsl(285, 59%, 53%)
HSVhsv(285, 69%, 81%)
CMYKcmyk(17%, 68.9%, 0%, 19.2%)
CIE-LABlab(47.98, 63.75, -53.70)
CIE-LCHlch(47.98, 83.35, 319.89°)
OKLaboklab(57.95% 0.1594 -0.1509)
OKLCHoklch(57.95% 0.219 316.6)
XYZxyz(29.7669, 16.7821, 60.0518)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40CE #63CE40
analogous
#6440CE #AB40CE #CE40AA
triadic
#AB40CE #CEAB40 #40CEAB
tetradic
#AB40CE #CE6440 #63CE40 #40AACE
square
#AB40CE #CE6440 #63CE40 #40AACE
split-complementary
#AB40CE #AACE40 #40CE64
monochromatic
#601E75 #882BA6 #AB40CE #C071DA #D6A1E7

Accessibility & contrast

On white

4.82
#AB40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AB40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40CE
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40CE#FFFFFF#000000##FFFFFF
##AB40CE1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#4175CB
Tritanopia (blue-blind)
#A95C82
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab40ce;
/* rgb */ color: rgb(171, 64, 206);
/* oklch */ color: oklch(58.0% 0.219 316.6);
Tailwind
colors: {
  custom: {
    50: '#c87dde',
    500: '#ab40ce',
    950: '#000000',
  },
}
SCSS
$custom: #ab40ce;
$custom-light: #c87dde;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40ce",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 285.211,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57953,
    "c": 0.21948,
    "h": 316.6
  },
  "luminance": 0.16781
}

Semantic roles & 50–950 ramp

primary
#AB40CE
secondary
#A5D496
accent
#E2456C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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