#AB2697#AB2697

#AB2697 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.204 H 335.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AB2697
RGBrgb(171, 38, 151)
HSLhsl(309, 64%, 41%)
HSVhsv(309, 78%, 67%)
CMYKcmyk(0%, 77.8%, 11.7%, 32.9%)
CIE-LABlab(41.66, 63.38, -31.35)
CIE-LCHlch(41.66, 70.71, 333.69°)
OKLaboklab(52.42% 0.1852 -0.0857)
OKLCHoklch(52.42% 0.204 335.2)
XYZxyz(23.0739, 12.2806, 30.4273)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2697 #26AB3A
analogous
#7C26AB #AB2697 #AB2654
triadic
#AB2697 #97AB26 #2697AB
tetradic
#AB2697 #AB7C26 #26AB3A #2654AB
square
#AB2697 #AB7C26 #26AB3A #2654AB
split-complementary
#AB2697 #54AB26 #26AB7C
monochromatic
#47103F #791B6B #AB2697 #D33BBC #DF6DCD

Accessibility & contrast

On white

6.08
#AB2697 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB2697 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2697
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2697#FFFFFF#000000##FFFFFF
##AB26971.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#576994
Tritanopia (blue-blind)
#B4325D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2697;
/* rgb */ color: rgb(171, 38, 151);
/* oklch */ color: oklch(52.4% 0.204 335.2);
Tailwind
colors: {
  custom: {
    50: '#c870b6',
    500: '#ab2697',
    950: '#000000',
  },
}
SCSS
$custom: #ab2697;
$custom-light: #c870b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2697",
  "rgb": {
    "r": 171,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 309.023,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52417,
    "c": 0.20409,
    "h": 335.2
  },
  "luminance": 0.12279
}

Semantic roles & 50–950 ramp

primary
#AB2697
secondary
#68C576
accent
#E75A41
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2697

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

Preview Lab → · Contrast checker → · Palette generator →

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