#AB278E#AB278E

#AB278E is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.0% C 0.197 H 338.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AB278E
RGBrgb(171, 39, 142)
HSLhsl(313, 63%, 41%)
HSVhsv(313, 77%, 67%)
CMYKcmyk(0%, 77.2%, 17%, 32.9%)
CIE-LABlab(41.32, 61.80, -26.41)
CIE-LCHlch(41.32, 67.21, 336.86°)
OKLaboklab(52.03% 0.1835 -0.0716)
OKLCHoklch(52.03% 0.197 338.7)
XYZxyz(22.4031, 12.0642, 26.7347)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB278E #27AB44
analogous
#8627AB #AB278E #AB274C
triadic
#AB278E #8EAB27 #278EAB
tetradic
#AB278E #AB8627 #27AB44 #274CAB
square
#AB278E #AB8627 #27AB44 #274CAB
split-complementary
#AB278E #4CAB27 #27AB86
monochromatic
#47103B #791C65 #AB278E #D33DB2 #DE6EC5

Accessibility & contrast

On white

6.15
#AB278E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB278E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB278E
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB278E#FFFFFF#000000##FFFFFF
##AB278E1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5491
Deuteranopia (green-blind)
#5B698B
Tritanopia (blue-blind)
#B52E58
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab278e;
/* rgb */ color: rgb(171, 39, 142);
/* oklch */ color: oklch(52.0% 0.197 338.7);
Tailwind
colors: {
  custom: {
    50: '#c870af',
    500: '#ab278e',
    950: '#000000',
  },
}
SCSS
$custom: #ab278e;
$custom-light: #c870af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab278e",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 313.182,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52028,
    "c": 0.19702,
    "h": 338.7
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#AB278E
secondary
#69C57D
accent
#E66642
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB278E

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

Preview Lab → · Contrast checker → · Palette generator →

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