#AB338C#AB338C

#AB338C is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.0% C 0.182 H 340.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AB338C
RGBrgb(171, 51, 140)
HSLhsl(316, 54%, 44%)
HSVhsv(316, 70%, 67%)
CMYKcmyk(0%, 70.2%, 18.1%, 32.9%)
CIE-LABlab(42.64, 57.50, -23.13)
CIE-LCHlch(42.64, 61.98, 338.08°)
OKLaboklab(52.96% 0.1711 -0.0624)
OKLCHoklch(52.96% 0.182 340)
XYZxyz(22.7126, 12.9212, 26.1037)
Luminance0.1292 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB338C #33AB52
analogous
#8E33AB #AB338C #AB3350
triadic
#AB338C #8CAB33 #338CAB
tetradic
#AB338C #AB8E33 #33AB52 #3350AB
square
#AB338C #AB8E33 #33AB52 #3350AB
split-complementary
#AB338C #50AB33 #33AB8E
monochromatic
#4D173F #7C2565 #AB338C #CB50AB #D97FC2

Accessibility & contrast

On white

5.86
#AB338C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB338C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB338C
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB338C#FFFFFF#000000##FFFFFF
##AB338C1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588F
Deuteranopia (green-blind)
#616C89
Tritanopia (blue-blind)
#B5375B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab338c;
/* rgb */ color: rgb(171, 51, 140);
/* oklch */ color: oklch(53.0% 0.182 340.0);
Tailwind
colors: {
  custom: {
    50: '#c875ae',
    500: '#ab338c',
    950: '#000000',
  },
}
SCSS
$custom: #ab338c;
$custom-light: #c875ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab338c",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 315.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.18215,
    "h": 340
  },
  "luminance": 0.12919
}

Semantic roles & 50–950 ramp

primary
#AB338C
secondary
#78C28B
accent
#DD704A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB338C

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

Preview Lab → · Contrast checker → · Palette generator →

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