#AB40C2#AB40C2

#AB40C2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.209 H 320.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB40C2
RGBrgb(171, 64, 194)
HSLhsl(289, 52%, 51%)
HSVhsv(289, 67%, 76%)
CMYKcmyk(11.9%, 67%, 0%, 23.9%)
CIE-LABlab(47.26, 61.44, -47.92)
CIE-LCHlch(47.26, 77.92, 322.05°)
OKLaboklab(57.2% 0.16 -0.134)
OKLCHoklch(57.2% 0.209 320)
XYZxyz(28.3644, 16.2211, 52.6654)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40C2 #57C240
analogous
#6A40C2 #AB40C2 #C24098
triadic
#AB40C2 #C2AB40 #40C2AB
tetradic
#AB40C2 #C26A40 #57C240 #4098C2
square
#AB40C2 #C26A40 #57C240 #4098C2
split-complementary
#AB40C2 #98C240 #40C26A
monochromatic
#5A2167 #833095 #AB40C2 #BF6ED1 #D49DE0

Accessibility & contrast

On white

4.95
#AB40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AB40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40C2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40C2#FFFFFF#000000##FFFFFF
##AB40C21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1169C6
Deuteranopia (green-blind)
#4B74BF
Tritanopia (blue-blind)
#AC577C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab40c2;
/* rgb */ color: rgb(171, 64, 194);
/* oklch */ color: oklch(57.2% 0.209 320.0);
Tailwind
colors: {
  custom: {
    50: '#c77dd5',
    500: '#ab40c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab40c2;
$custom-light: #c77dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40c2",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 289.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57204,
    "c": 0.20866,
    "h": 320
  },
  "luminance": 0.1622
}

Semantic roles & 50–950 ramp

primary
#AB40C2
secondary
#9CCC92
accent
#DB4D66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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