#AB40B3#AB40B3

#AB40B3 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.3% C 0.195 H 324.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AB40B3
RGBrgb(171, 64, 179)
HSLhsl(296, 47%, 48%)
HSVhsv(296, 64%, 70%)
CMYKcmyk(4.5%, 64.2%, 0%, 29.8%)
CIE-LABlab(46.42, 58.67, -40.51)
CIE-LCHlch(46.42, 71.30, 325.38°)
OKLaboklab(56.32% 0.1599 -0.1124)
OKLCHoklch(56.32% 0.195 324.9)
XYZxyz(26.7640, 15.5810, 44.2368)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40B3 #48B340
analogous
#7140B3 #AB40B3 #B34081
triadic
#AB40B3 #B3AB40 #40B3AB
tetradic
#AB40B3 #B37140 #48B340 #4081B3
square
#AB40B3 #B37140 #48B340 #4081B3
split-complementary
#AB40B3 #81B340 #40B371
monochromatic
#552059 #803086 #AB40B3 #C267C9 #D494D9

Accessibility & contrast

On white

5.10
#AB40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AB40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40B3
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40B3#FFFFFF#000000##FFFFFF
##AB40B31.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B6
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#AF5174
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab40b3;
/* rgb */ color: rgb(171, 64, 179);
/* oklch */ color: oklch(56.3% 0.195 324.9);
Tailwind
colors: {
  custom: {
    50: '#c77dca',
    500: '#ab40b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab40b3;
$custom-light: #c77dca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40b3",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 295.826,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56324,
    "c": 0.19545,
    "h": 324.9
  },
  "luminance": 0.15579
}

Semantic roles & 50–950 ramp

primary
#AB40B3
secondary
#8EC48A
accent
#D7515A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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