#AB2795#AB2795

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

Color values

HEX#AB2795
RGBrgb(171, 39, 149)
HSLhsl(310, 63%, 41%)
HSVhsv(310, 77%, 67%)
CMYKcmyk(0%, 77.2%, 12.9%, 32.9%)
CIE-LABlab(41.66, 62.80, -30.13)
CIE-LCHlch(41.66, 69.65, 334.37°)
OKLaboklab(52.39% 0.1842 -0.0822)
OKLCHoklch(52.39% 0.202 335.9)
XYZxyz(22.9453, 12.2810, 29.5900)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2795 #27AB3D
analogous
#7F27AB #AB2795 #AB2753
triadic
#AB2795 #95AB27 #2795AB
tetradic
#AB2795 #AB7F27 #27AB3D #2753AB
square
#AB2795 #AB7F27 #27AB3D #2753AB
split-complementary
#AB2795 #53AB27 #27AB7F
monochromatic
#47103E #791C6A #AB2795 #D33DBA #DE6ECB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2795#FFFFFF#000000##FFFFFF
##AB27951.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)
#295698
Deuteranopia (green-blind)
#586992
Tritanopia (blue-blind)
#B4325C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2795;
/* rgb */ color: rgb(171, 39, 149);
/* oklch */ color: oklch(52.4% 0.202 335.9);
Tailwind
colors: {
  custom: {
    50: '#c870b4',
    500: '#ab2795',
    950: '#000000',
  },
}
SCSS
$custom: #ab2795;
$custom-light: #c870b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2795",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 310,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52385,
    "c": 0.20174,
    "h": 335.9
  },
  "luminance": 0.12279
}

Semantic roles & 50–950 ramp

primary
#AB2795
secondary
#69C578
accent
#E65D42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2795

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

Preview Lab → · Contrast checker → · Palette generator →

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