#AB40B5#AB40B5

#AB40B5 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.197 H 324.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AB40B5
RGBrgb(171, 64, 181)
HSLhsl(295, 48%, 48%)
HSVhsv(295, 65%, 71%)
CMYKcmyk(5.5%, 64.6%, 0%, 29%)
CIE-LABlab(46.53, 59.03, -41.51)
CIE-LCHlch(46.53, 72.17, 324.89°)
OKLaboklab(56.44% 0.16 -0.1153)
OKLCHoklch(56.44% 0.197 324.2)
XYZxyz(26.9678, 15.6625, 45.3098)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40B5 #4AB540
analogous
#7040B5 #AB40B5 #B54084
triadic
#AB40B5 #B5AB40 #40B5AB
tetradic
#AB40B5 #B57040 #4AB540 #4084B5
square
#AB40B5 #B57040 #4AB540 #4084B5
split-complementary
#AB40B5 #84B540 #40B570
monochromatic
#56205B #803088 #AB40B5 #C168CA #D496DA

Accessibility & contrast

On white

5.08
#AB40B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AB40B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40B5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40B5#FFFFFF#000000##FFFFFF
##AB40B51.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B8
Deuteranopia (green-blind)
#5473B2
Tritanopia (blue-blind)
#AE5275
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab40b5;
/* rgb */ color: rgb(171, 64, 181);
/* oklch */ color: oklch(56.4% 0.197 324.2);
Tailwind
colors: {
  custom: {
    50: '#c77dcc',
    500: '#ab40b5',
    950: '#000000',
  },
}
SCSS
$custom: #ab40b5;
$custom-light: #c77dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40b5",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 294.872,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56438,
    "c": 0.1972,
    "h": 324.2
  },
  "luminance": 0.15661
}

Semantic roles & 50–950 ramp

primary
#AB40B5
secondary
#90C58B
accent
#D7505C
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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