#AB1237

A color in the Red, Pink family

#ab1237 is a color in the Red, Pink family: RGB(171, 18, 55), HSL(345°, 81%, 37%), CMYK(0%, 89%, 68%, 33%). Closest named color: brown. Contrast is 7.31:1 on white and 2.87:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ab1237
RGBrgb(171 18 55)
RGB (legacy)rgb(171, 18, 55)
RGB %rgb(67% 7% 22%)
HSLhsl(345 81% 37%)
HSV / HSBhsv(345, 89%, 67%)
HWBhwb(345 7% 33%)
CMYKcmyk(0%, 89%, 68%, 33%)
CIELAB (D50)lab(37.35 58.63 23.21)
LCHlch(37.35 63.06 21.6)
OKLaboklab(0.4772 0.1742 0.0514)
OKLCHoklch(0.4772 0.1816 16.44)
Decimal11211319

Properties

Color ToneRed, Pink
Closest named colorbrown ΔE 3.5
Closest web-safe color#990033
Hue345°
Saturation (HSL / HSV)81% / 89%
Lightness (HSL)37%
Brightness or Value (HSV)67%
Luminance (Rec.601 / Rec.709)27% / 21%
Relative luminance (WCAG)0.0937
Red / Green / Blue171 / 18 / 55

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.31:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.87:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 83.4 / -18.5 · As background with white / black text: Lc -88.4 / 20.6

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #ab1237;
  --color-brand-oklch: oklch(47.72% 0.1816 16.44);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(171 18 55 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ab1237] text-[#ab1237] border-[#ab1237]">