#AB40CF#AB40CF

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

Color values

HEX#AB40CF
RGBrgb(171, 64, 207)
HSLhsl(285, 60%, 53%)
HSVhsv(285, 69%, 81%)
CMYKcmyk(17.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(48.05, 63.95, -54.17)
CIE-LCHlch(48.05, 83.81, 319.73°)
OKLaboklab(58.02% 0.1593 -0.1523)
OKLCHoklch(58.02% 0.22 316.3)
XYZxyz(29.8887, 16.8309, 60.6937)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40CF #64CF40
analogous
#6340CF #AB40CF #CF40AC
triadic
#AB40CF #CFAB40 #40CFAB
tetradic
#AB40CF #CF6340 #64CF40 #40ACCF
square
#AB40CF #CF6340 #64CF40 #40ACCF
split-complementary
#AB40CF #ACCF40 #40CF63
monochromatic
#601E77 #882AA8 #AB40CF #C171DB #D6A2E8

Accessibility & contrast

On white

4.81
#AB40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AB40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40CF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40CF#FFFFFF#000000##FFFFFF
##AB40CF1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#4075CC
Tritanopia (blue-blind)
#A95C83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab40cf;
/* rgb */ color: rgb(171, 64, 207);
/* oklch */ color: oklch(58.0% 0.220 316.3);
Tailwind
colors: {
  custom: {
    50: '#c87dde',
    500: '#ab40cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab40cf;
$custom-light: #c87dde;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40cf",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 284.895,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58017,
    "c": 0.22038,
    "h": 316.3
  },
  "luminance": 0.1683
}

Semantic roles & 50–950 ramp

primary
#AB40CF
secondary
#A6D497
accent
#E3456D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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