#AB307F#AB307F

#AB307F is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.178 H 345.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AB307F
RGBrgb(171, 48, 127)
HSLhsl(321, 56%, 43%)
HSVhsv(321, 72%, 67%)
CMYKcmyk(0%, 71.9%, 25.7%, 32.9%)
CIE-LABlab(41.70, 56.81, -16.63)
CIE-LCHlch(41.70, 59.20, 343.68°)
OKLaboklab(52.09% 0.172 -0.0441)
OKLCHoklch(52.09% 0.178 345.6)
XYZxyz(21.6832, 12.3064, 21.3080)
Luminance0.1230 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB307F #30AB5C
analogous
#9930AB #AB307F #AB3042
triadic
#AB307F #7FAB30 #307FAB
tetradic
#AB307F #AB9930 #30AB5C #3042AB
square
#AB307F #AB9930 #30AB5C #3042AB
split-complementary
#AB307F #42AB30 #30AB99
monochromatic
#4B1538 #7B235C #AB307F #CD4C9E #DA7BB8

Accessibility & contrast

On white

6.07
#AB307F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB307F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB307F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB307F#FFFFFF#000000##FFFFFF
##AB307F1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5581
Deuteranopia (green-blind)
#646A7C
Tritanopia (blue-blind)
#B72E53
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab307f;
/* rgb */ color: rgb(171, 48, 127);
/* oklch */ color: oklch(52.1% 0.178 345.6);
Tailwind
colors: {
  custom: {
    50: '#c873a4',
    500: '#ab307f',
    950: '#000000',
  },
}
SCSS
$custom: #ab307f;
$custom-light: #c873a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab307f",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 321.463,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52089,
    "c": 0.17759,
    "h": 345.6
  },
  "luminance": 0.12304
}

Semantic roles & 50–950 ramp

primary
#AB307F
secondary
#74C390
accent
#DF7E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB307F

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

Preview Lab → · Contrast checker → · Palette generator →

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