#AB308F#AB308F

#AB308F is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.8% C 0.188 H 338.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AB308F
RGBrgb(171, 48, 143)
HSLhsl(314, 56%, 43%)
HSVhsv(314, 72%, 67%)
CMYKcmyk(0%, 71.9%, 16.4%, 32.9%)
CIE-LABlab(42.40, 59.02, -25.34)
CIE-LCHlch(42.40, 64.23, 336.76°)
OKLaboklab(52.82% 0.1749 -0.0686)
OKLCHoklch(52.82% 0.188 338.6)
XYZxyz(22.8100, 12.7571, 27.2423)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB308F #30AB4C
analogous
#8A30AB #AB308F #AB3051
triadic
#AB308F #8FAB30 #308FAB
tetradic
#AB308F #AB8A30 #30AB4C #3051AB
square
#AB308F #AB8A30 #30AB4C #3051AB
split-complementary
#AB308F #51AB30 #30AB8A
monochromatic
#4B153F #7B2367 #AB308F #CD4CAF #DA7BC4

Accessibility & contrast

On white

5.91
#AB308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB308F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB308F#FFFFFF#000000##FFFFFF
##AB308F1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365892
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#B5355C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab308f;
/* rgb */ color: rgb(171, 48, 143);
/* oklch */ color: oklch(52.8% 0.188 338.6);
Tailwind
colors: {
  custom: {
    50: '#c874b0',
    500: '#ab308f',
    950: '#000000',
  },
}
SCSS
$custom: #ab308f;
$custom-light: #c874b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab308f",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 313.659,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52822,
    "c": 0.18784,
    "h": 338.6
  },
  "luminance": 0.12755
}

Semantic roles & 50–950 ramp

primary
#AB308F
secondary
#74C386
accent
#DF6B48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB308F

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

Preview Lab → · Contrast checker → · Palette generator →

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