#AB238D#AB238D

#AB238D is a mid, highly saturated pink. Relative luminance 0.118; OKLCH L 51.7% C 0.200 H 339.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB238D
RGBrgb(171, 35, 141)
HSLhsl(313, 66%, 40%)
HSVhsv(313, 80%, 67%)
CMYKcmyk(0%, 79.5%, 17.5%, 32.9%)
CIE-LABlab(40.87, 62.80, -26.50)
CIE-LCHlch(40.87, 68.16, 337.12°)
OKLaboklab(51.69% 0.1869 -0.0718)
OKLCHoklch(51.69% 0.2 339)
XYZxyz(22.2039, 11.7853, 26.2996)
Luminance0.1178 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB238D #23AB41
analogous
#8523AB #AB238D #AB2349
triadic
#AB238D #8DAB23 #238DAB
tetradic
#AB238D #AB8523 #23AB41 #2349AB
square
#AB238D #AB8523 #23AB41 #2349AB
split-complementary
#AB238D #49AB23 #23AB85
monochromatic
#450E39 #781963 #AB238D #D635B2 #E068C6

Accessibility & contrast

On white

6.26
#AB238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AB238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB238D
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB238D#FFFFFF#000000##FFFFFF
##AB238D1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#5A688A
Tritanopia (blue-blind)
#B52A57
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab238d;
/* rgb */ color: rgb(171, 35, 141);
/* oklch */ color: oklch(51.7% 0.200 339.0);
Tailwind
colors: {
  custom: {
    50: '#c86eae',
    500: '#ab238d',
    950: '#000000',
  },
}
SCSS
$custom: #ab238d;
$custom-light: #c86eae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab238d",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 313.235,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51692,
    "c": 0.2002,
    "h": 339
  },
  "luminance": 0.11783
}

Semantic roles & 50–950 ramp

primary
#AB238D
secondary
#64C679
accent
#E9643F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB238D

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

Preview Lab → · Contrast checker → · Palette generator →

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