#AB40B2#AB40B2

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

Color values

HEX#AB40B2
RGBrgb(171, 64, 178)
HSLhsl(296, 47%, 47%)
HSVhsv(296, 64%, 70%)
CMYKcmyk(3.9%, 64%, 0%, 30.2%)
CIE-LABlab(46.37, 58.49, -40.01)
CIE-LCHlch(46.37, 70.87, 325.63°)
OKLaboklab(56.27% 0.1599 -0.1109)
OKLCHoklch(56.27% 0.195 325.2)
XYZxyz(26.6633, 15.5407, 43.7061)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40B2 #47B240
analogous
#7240B2 #AB40B2 #B24080
triadic
#AB40B2 #B2AB40 #40B2AB
tetradic
#AB40B2 #B27240 #47B240 #4080B2
square
#AB40B2 #B27240 #47B240 #4080B2
split-complementary
#AB40B2 #80B240 #40B272
monochromatic
#552058 #803085 #AB40B2 #C267C8 #D494D8

Accessibility & contrast

On white

5.11
#AB40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AB40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40B2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40B2#FFFFFF#000000##FFFFFF
##AB40B21.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B5
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#AF5173
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab40b2;
/* rgb */ color: rgb(171, 64, 178);
/* oklch */ color: oklch(56.3% 0.195 325.2);
Tailwind
colors: {
  custom: {
    50: '#c77dc9',
    500: '#ab40b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab40b2;
$custom-light: #c77dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40b2",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 296.316,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56268,
    "c": 0.19459,
    "h": 325.2
  },
  "luminance": 0.15539
}

Semantic roles & 50–950 ramp

primary
#AB40B2
secondary
#8DC48A
accent
#D75159
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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