#AB2258#AB2258

#AB2258 is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.5% C 0.175 H 3.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#AB2258
RGBrgb(171, 34, 88)
HSLhsl(336, 67%, 40%)
HSVhsv(336, 80%, 67%)
CMYKcmyk(0%, 80.1%, 48.5%, 32.9%)
CIE-LABlab(38.74, 57.06, 3.40)
CIE-LCHlch(38.74, 57.16, 3.40°)
OKLaboklab(49.48% 0.175 0.0093)
OKLCHoklch(49.48% 0.175 3)
XYZxyz(19.1297, 10.5092, 10.2518)
Luminance0.1051 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2258 #22AB75
analogous
#AB229D #AB2258 #AB3022
triadic
#AB2258 #58AB22 #2258AB
tetradic
#AB2258 #9DAB22 #22AB75 #3022AB
square
#AB2258 #9DAB22 #22AB75 #3022AB
split-complementary
#AB2258 #22AB30 #229DAB
monochromatic
#450E23 #78183E #AB2258 #D73474 #E16797

Accessibility & contrast

On white

6.77
#AB2258 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#AB2258 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2258
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2258#FFFFFF#000000##FFFFFF
##AB22581.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454A59
Deuteranopia (green-blind)
#696555
Tritanopia (blue-blind)
#BA003A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2258;
/* rgb */ color: rgb(171, 34, 88);
/* oklch */ color: oklch(49.5% 0.175 3.0);
Tailwind
colors: {
  custom: {
    50: '#ca6c86',
    500: '#ab2258',
    950: '#000000',
  },
}
SCSS
$custom: #ab2258;
$custom-light: #ca6c86;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2258",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 336.35,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49479,
    "c": 0.17526,
    "h": 3
  },
  "luminance": 0.10507
}

Semantic roles & 50–950 ramp

primary
#AB2258
secondary
#63C69F
accent
#EAA63E
background
#FDF6F8
surface
#FAECEF
border
#D3C7CA
text
#14080B
muted
#837A7C

Preview Lab

Preview with #AB2258

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

Preview Lab → · Contrast checker → · Palette generator →

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