#AB274E#AB274E

#AB274E is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.6% C 0.168 H 8.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#AB274E
RGBrgb(171, 39, 78)
HSLhsl(342, 63%, 41%)
HSVhsv(342, 77%, 67%)
CMYKcmyk(0%, 77.2%, 54.4%, 32.9%)
CIE-LABlab(39.00, 54.73, 10.14)
CIE-LCHlch(39.00, 55.67, 10.50°)
OKLaboklab(49.59% 0.1664 0.0258)
OKLCHoklch(49.59% 0.168 8.8)
XYZxyz(18.8970, 10.6617, 8.2691)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB274E #27AB84
analogous
#AB2790 #AB274E #AB4227
triadic
#AB274E #4EAB27 #274EAB
tetradic
#AB274E #90AB27 #27AB84 #4227AB
square
#AB274E #90AB27 #27AB84 #4227AB
split-complementary
#AB274E #27AB42 #2790AB
monochromatic
#471021 #791C37 #AB274E #D33D69 #DE6E8F

Accessibility & contrast

On white

6.71
#AB274E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#AB274E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB274E
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB274E#FFFFFF#000000##FFFFFF
##AB274E1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4B4F
Deuteranopia (green-blind)
#6C654B
Tritanopia (blue-blind)
#BB0038
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #ab274e;
/* rgb */ color: rgb(171, 39, 78);
/* oklch */ color: oklch(49.6% 0.168 8.8);
Tailwind
colors: {
  custom: {
    50: '#ca6e7f',
    500: '#ab274e',
    950: '#000000',
  },
}
SCSS
$custom: #ab274e;
$custom-light: #ca6e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab274e",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 78
  },
  "hsl": {
    "h": 342.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49586,
    "c": 0.16842,
    "h": 8.8
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#AB274E
secondary
#69C5AA
accent
#E6B542
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#14080A
muted
#837B7C

Preview Lab

Preview with #AB274E

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

Preview Lab → · Contrast checker → · Palette generator →

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