#AB308B#AB308B

#AB308B is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.6% C 0.185 H 340.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AB308B
RGBrgb(171, 48, 139)
HSLhsl(316, 56%, 43%)
HSVhsv(316, 72%, 67%)
CMYKcmyk(0%, 71.9%, 18.7%, 32.9%)
CIE-LABlab(42.21, 58.44, -23.19)
CIE-LCHlch(42.21, 62.88, 338.35°)
OKLaboklab(52.63% 0.1743 -0.0625)
OKLCHoklch(52.63% 0.185 340.3)
XYZxyz(22.5124, 12.6381, 25.6749)
Luminance0.1264 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB308B #30AB50
analogous
#8D30AB #AB308B #AB304D
triadic
#AB308B #8BAB30 #308BAB
tetradic
#AB308B #AB8D30 #30AB50 #304DAB
square
#AB308B #AB8D30 #30AB50 #304DAB
split-complementary
#AB308B #4DAB30 #30AB8D
monochromatic
#4B153D #7B2364 #AB308B #CD4CAB #DA7BC1

Accessibility & contrast

On white

5.95
#AB308B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB308B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB308B
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB308B#FFFFFF#000000##FFFFFF
##AB308B1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#B53359
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab308b;
/* rgb */ color: rgb(171, 48, 139);
/* oklch */ color: oklch(52.6% 0.185 340.3);
Tailwind
colors: {
  custom: {
    50: '#c874ad',
    500: '#ab308b',
    950: '#000000',
  },
}
SCSS
$custom: #ab308b;
$custom-light: #c874ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab308b",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 315.61,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52631,
    "c": 0.18514,
    "h": 340.3
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#AB308B
secondary
#74C389
accent
#DF7048
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB308B

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

Preview Lab → · Contrast checker → · Palette generator →

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