#AB40C3#AB40C3

#AB40C3 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.210 H 319.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB40C3
RGBrgb(171, 64, 195)
HSLhsl(289, 52%, 51%)
HSVhsv(289, 67%, 76%)
CMYKcmyk(12.3%, 67.2%, 0%, 23.5%)
CIE-LABlab(47.32, 61.63, -48.41)
CIE-LCHlch(47.32, 78.37, 321.85°)
OKLaboklab(57.27% 0.1599 -0.1354)
OKLCHoklch(57.27% 0.21 319.7)
XYZxyz(28.4771, 16.2662, 53.2589)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40C3 #58C340
analogous
#6940C3 #AB40C3 #C34099
triadic
#AB40C3 #C3AB40 #40C3AB
tetradic
#AB40C3 #C36940 #58C340 #4099C3
square
#AB40C3 #C36940 #58C340 #4099C3
split-complementary
#AB40C3 #99C340 #40C369
monochromatic
#5B2168 #842F97 #AB40C3 #BF6FD2 #D49DE0

Accessibility & contrast

On white

4.94
#AB40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AB40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40C3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40C3#FFFFFF#000000##FFFFFF
##AB40C31.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D69C7
Deuteranopia (green-blind)
#4A74C0
Tritanopia (blue-blind)
#AB577C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab40c3;
/* rgb */ color: rgb(171, 64, 195);
/* oklch */ color: oklch(57.3% 0.210 319.7);
Tailwind
colors: {
  custom: {
    50: '#c77dd6',
    500: '#ab40c3',
    950: '#000000',
  },
}
SCSS
$custom: #ab40c3;
$custom-light: #c77dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40c3",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 289.008,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57265,
    "c": 0.20956,
    "h": 319.7
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#AB40C3
secondary
#9DCC92
accent
#DC4C66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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