#AB308D#AB308D

#AB308D is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.186 H 339.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB308D
RGBrgb(171, 48, 141)
HSLhsl(315, 56%, 43%)
HSVhsv(315, 72%, 67%)
CMYKcmyk(0%, 71.9%, 17.5%, 32.9%)
CIE-LABlab(42.30, 58.73, -24.27)
CIE-LCHlch(42.30, 63.54, 337.55°)
OKLaboklab(52.73% 0.1746 -0.0656)
OKLCHoklch(52.73% 0.186 339.4)
XYZxyz(22.6598, 12.6971, 26.4515)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB308D #30AB4E
analogous
#8B30AB #AB308D #AB3050
triadic
#AB308D #8DAB30 #308DAB
tetradic
#AB308D #AB8B30 #30AB4E #3050AB
square
#AB308D #AB8B30 #30AB4E #3050AB
split-complementary
#AB308D #50AB30 #30AB8B
monochromatic
#4B153E #7B2366 #AB308D #CD4CAD #DA7BC3

Accessibility & contrast

On white

5.93
#AB308D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB308D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB308D
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB308D#FFFFFF#000000##FFFFFF
##AB308D1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375790
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#B5345A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab308d;
/* rgb */ color: rgb(171, 48, 141);
/* oklch */ color: oklch(52.7% 0.186 339.4);
Tailwind
colors: {
  custom: {
    50: '#c874ae',
    500: '#ab308d',
    950: '#000000',
  },
}
SCSS
$custom: #ab308d;
$custom-light: #c874ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab308d",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 314.634,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52726,
    "c": 0.18648,
    "h": 339.4
  },
  "luminance": 0.12695
}

Semantic roles & 50–950 ramp

primary
#AB308D
secondary
#74C387
accent
#DF6D48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB308D

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

Preview Lab → · Contrast checker → · Palette generator →

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