#AB40B1#AB40B1

#AB40B1 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.194 H 325.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB40B1
RGBrgb(171, 64, 177)
HSLhsl(297, 47%, 47%)
HSVhsv(297, 64%, 69%)
CMYKcmyk(3.4%, 63.8%, 0%, 30.6%)
CIE-LABlab(46.31, 58.31, -39.50)
CIE-LCHlch(46.31, 70.43, 325.89°)
OKLaboklab(56.21% 0.1598 -0.1095)
OKLCHoklch(56.21% 0.194 325.6)
XYZxyz(26.5632, 15.5007, 43.1792)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40B1 #46B140
analogous
#7240B1 #AB40B1 #B1407F
triadic
#AB40B1 #B1AB40 #40B1AB
tetradic
#AB40B1 #B17240 #46B140 #407FB1
square
#AB40B1 #B17240 #46B140 #407FB1
split-complementary
#AB40B1 #7FB140 #40B172
monochromatic
#541F57 #803084 #AB40B1 #C366C8 #D493D8

Accessibility & contrast

On white

5.12
#AB40B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AB40B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40B1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40B1#FFFFFF#000000##FFFFFF
##AB40B11.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D65B4
Deuteranopia (green-blind)
#5672AE
Tritanopia (blue-blind)
#AF5073
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab40b1;
/* rgb */ color: rgb(171, 64, 177);
/* oklch */ color: oklch(56.2% 0.194 325.6);
Tailwind
colors: {
  custom: {
    50: '#c77dc9',
    500: '#ab40b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab40b1;
$custom-light: #c77dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40b1",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 296.814,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56212,
    "c": 0.19373,
    "h": 325.6
  },
  "luminance": 0.15499
}

Semantic roles & 50–950 ramp

primary
#AB40B1
secondary
#8CC389
accent
#D75158
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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