#AB238A#AB238A

#AB238A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.5% C 0.198 H 340.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AB238A
RGBrgb(171, 35, 138)
HSLhsl(315, 66%, 40%)
HSVhsv(315, 80%, 67%)
CMYKcmyk(0%, 79.5%, 19.3%, 32.9%)
CIE-LABlab(40.73, 62.39, -24.88)
CIE-LCHlch(40.73, 67.17, 338.26°)
OKLaboklab(51.54% 0.1865 -0.0672)
OKLCHoklch(51.54% 0.198 340.2)
XYZxyz(21.9837, 11.6972, 25.1399)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB238A #23AB44
analogous
#8823AB #AB238A #AB2346
triadic
#AB238A #8AAB23 #238AAB
tetradic
#AB238A #AB8823 #23AB44 #2346AB
square
#AB238A #AB8823 #23AB44 #2346AB
split-complementary
#AB238A #46AB23 #23AB88
monochromatic
#450E38 #781961 #AB238A #D635AF #E068C3

Accessibility & contrast

On white

6.29
#AB238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AB238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB238A
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB238A#FFFFFF#000000##FFFFFF
##AB238A1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528D
Deuteranopia (green-blind)
#5C6887
Tritanopia (blue-blind)
#B52855
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab238a;
/* rgb */ color: rgb(171, 35, 138);
/* oklch */ color: oklch(51.5% 0.198 340.2);
Tailwind
colors: {
  custom: {
    50: '#c86eac',
    500: '#ab238a',
    950: '#000000',
  },
}
SCSS
$custom: #ab238a;
$custom-light: #c86eac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab238a",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 314.559,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51544,
    "c": 0.19827,
    "h": 340.2
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#AB238A
secondary
#64C67C
accent
#E9683F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB238A

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

Preview Lab → · Contrast checker → · Palette generator →

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