#AB308C#AB308C

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

Color values

HEX#AB308C
RGBrgb(171, 48, 140)
HSLhsl(315, 56%, 43%)
HSVhsv(315, 72%, 67%)
CMYKcmyk(0%, 71.9%, 18.1%, 32.9%)
CIE-LABlab(42.26, 58.58, -23.73)
CIE-LCHlch(42.26, 63.21, 337.95°)
OKLaboklab(52.68% 0.1744 -0.0641)
OKLCHoklch(52.68% 0.186 339.8)
XYZxyz(22.5858, 12.6675, 26.0614)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB308C #30AB4F
analogous
#8C30AB #AB308C #AB304E
triadic
#AB308C #8CAB30 #308CAB
tetradic
#AB308C #AB8C30 #30AB4F #304EAB
square
#AB308C #AB8C30 #30AB4F #304EAB
split-complementary
#AB308C #4EAB30 #30AB8C
monochromatic
#4B153E #7B2365 #AB308C #CD4CAC #DA7BC2

Accessibility & contrast

On white

5.94
#AB308C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB308C
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB308C#FFFFFF#000000##FFFFFF
##AB308C1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578F
Deuteranopia (green-blind)
#5F6B89
Tritanopia (blue-blind)
#B5345A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab308c;
/* rgb */ color: rgb(171, 48, 140);
/* oklch */ color: oklch(52.7% 0.186 339.8);
Tailwind
colors: {
  custom: {
    50: '#c874ae',
    500: '#ab308c',
    950: '#000000',
  },
}
SCSS
$custom: #ab308c;
$custom-light: #c874ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab308c",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 315.122,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52678,
    "c": 0.18581,
    "h": 339.8
  },
  "luminance": 0.12665
}

Semantic roles & 50–950 ramp

primary
#AB308C
secondary
#74C388
accent
#DF6E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB308C

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

Preview Lab → · Contrast checker → · Palette generator →

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