#AB40C0#AB40C0

#AB40C0 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.1% C 0.207 H 320.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB40C0
RGBrgb(171, 64, 192)
HSLhsl(290, 50%, 50%)
HSVhsv(290, 67%, 75%)
CMYKcmyk(10.9%, 66.7%, 0%, 24.7%)
CIE-LABlab(47.15, 61.07, -46.94)
CIE-LCHlch(47.15, 77.02, 322.45°)
OKLaboklab(57.08% 0.16 -0.1311)
OKLCHoklch(57.08% 0.207 320.7)
XYZxyz(28.1413, 16.1319, 51.4904)
Luminance0.1613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40C0 #55C040
analogous
#6B40C0 #AB40C0 #C04095
triadic
#AB40C0 #C0AB40 #40C0AB
tetradic
#AB40C0 #C06B40 #55C040 #4095C0
square
#AB40C0 #C06B40 #55C040 #4095C0
split-complementary
#AB40C0 #95C040 #40C06B
monochromatic
#592164 #823092 #AB40C0 #BF6ECF #D39CDE

Accessibility & contrast

On white

4.97
#AB40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AB40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40C0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40C0#FFFFFF#000000##FFFFFF
##AB40C01.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1668C4
Deuteranopia (green-blind)
#4D74BD
Tritanopia (blue-blind)
#AC567B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab40c0;
/* rgb */ color: rgb(171, 64, 192);
/* oklch */ color: oklch(57.1% 0.207 320.7);
Tailwind
colors: {
  custom: {
    50: '#c77dd3',
    500: '#ab40c0',
    950: '#000000',
  },
}
SCSS
$custom: #ab40c0;
$custom-light: #c77dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40c0",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 290.156,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57083,
    "c": 0.20688,
    "h": 320.7
  },
  "luminance": 0.1613
}

Semantic roles & 50–950 ramp

primary
#AB40C0
secondary
#9BCB91
accent
#DA4E65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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