#AB237E#AB237E

#AB237E is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.0% C 0.191 H 345.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AB237E
RGBrgb(171, 35, 126)
HSLhsl(320, 66%, 40%)
HSVhsv(320, 80%, 67%)
CMYKcmyk(0%, 79.5%, 26.3%, 32.9%)
CIE-LABlab(40.19, 60.83, -18.32)
CIE-LCHlch(40.19, 63.53, 343.24°)
OKLaboklab(50.98% 0.1847 -0.0488)
OKLCHoklch(50.98% 0.191 345.2)
XYZxyz(21.1625, 11.3687, 20.8145)
Luminance0.1137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB237E #23AB50
analogous
#9423AB #AB237E #AB233A
triadic
#AB237E #7EAB23 #237EAB
tetradic
#AB237E #AB9423 #23AB50 #233AAB
square
#AB237E #AB9423 #23AB50 #233AAB
split-complementary
#AB237E #3AAB23 #23AB94
monochromatic
#450E33 #781959 #AB237E #D635A1 #E068B8

Accessibility & contrast

On white

6.42
#AB237E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AB237E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB237E
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB237E#FFFFFF#000000##FFFFFF
##AB237E1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365080
Deuteranopia (green-blind)
#60677B
Tritanopia (blue-blind)
#B7204E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab237e;
/* rgb */ color: rgb(171, 35, 126);
/* oklch */ color: oklch(51.0% 0.191 345.2);
Tailwind
colors: {
  custom: {
    50: '#c86ea3',
    500: '#ab237e',
    950: '#000000',
  },
}
SCSS
$custom: #ab237e;
$custom-light: #c86ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab237e",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 319.853,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50982,
    "c": 0.19099,
    "h": 345.2
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#AB237E
secondary
#64C684
accent
#E9773F
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB237E

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

Preview Lab → · Contrast checker → · Palette generator →

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