#AB40BF#AB40BF

#AB40BF is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.0% C 0.206 H 321.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AB40BF
RGBrgb(171, 64, 191)
HSLhsl(291, 50%, 50%)
HSVhsv(291, 66%, 75%)
CMYKcmyk(10.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(47.09, 60.88, -46.45)
CIE-LCHlch(47.09, 76.58, 322.65°)
OKLaboklab(57.02% 0.16 -0.1297)
OKLCHoklch(57.02% 0.206 321)
XYZxyz(28.0309, 16.0877, 50.9089)
Luminance0.1609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40BF #54BF40
analogous
#6B40BF #AB40BF #BF4094
triadic
#AB40BF #BFAB40 #40BFAB
tetradic
#AB40BF #BF6B40 #54BF40 #4094BF
square
#AB40BF #BF6B40 #54BF40 #4094BF
split-complementary
#AB40BF #94BF40 #40BF6B
monochromatic
#592163 #823191 #AB40BF #BF6ECE #D39CDE

Accessibility & contrast

On white

4.98
#AB40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AB40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40BF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40BF#FFFFFF#000000##FFFFFF
##AB40BF1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1868C3
Deuteranopia (green-blind)
#4D74BC
Tritanopia (blue-blind)
#AC567A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab40bf;
/* rgb */ color: rgb(171, 64, 191);
/* oklch */ color: oklch(57.0% 0.206 321.0);
Tailwind
colors: {
  custom: {
    50: '#c77dd3',
    500: '#ab40bf',
    950: '#000000',
  },
}
SCSS
$custom: #ab40bf;
$custom-light: #c77dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40bf",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 290.551,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.57023,
    "c": 0.20599,
    "h": 321
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#AB40BF
secondary
#9ACA91
accent
#D94E64
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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