#AB307E#AB307E

#AB307E is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.0% C 0.177 H 346.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AB307E
RGBrgb(171, 48, 126)
HSLhsl(322, 56%, 43%)
HSVhsv(322, 72%, 67%)
CMYKcmyk(0%, 71.9%, 26.3%, 32.9%)
CIE-LABlab(41.66, 56.68, -16.08)
CIE-LCHlch(41.66, 58.92, 344.16°)
OKLaboklab(52.05% 0.1718 -0.0426)
OKLCHoklch(52.05% 0.177 346.1)
XYZxyz(21.6184, 12.2805, 20.9665)
Luminance0.1228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB307E #30AB5D
analogous
#9A30AB #AB307E #AB3041
triadic
#AB307E #7EAB30 #307EAB
tetradic
#AB307E #AB9A30 #30AB5D #3041AB
square
#AB307E #AB9A30 #30AB5D #3041AB
split-complementary
#AB307E #41AB30 #30AB9A
monochromatic
#4B1538 #7B235B #AB307E #CD4C9D #DA7BB7

Accessibility & contrast

On white

6.08
#AB307E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB307E
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB307E#FFFFFF#000000##FFFFFF
##AB307E1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5580
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#B72D53
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab307e;
/* rgb */ color: rgb(171, 48, 126);
/* oklch */ color: oklch(52.0% 0.177 346.1);
Tailwind
colors: {
  custom: {
    50: '#c873a3',
    500: '#ab307e',
    950: '#000000',
  },
}
SCSS
$custom: #ab307e;
$custom-light: #c873a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab307e",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 321.951,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52046,
    "c": 0.177,
    "h": 346.1
  },
  "luminance": 0.12278
}

Semantic roles & 50–950 ramp

primary
#AB307E
secondary
#74C391
accent
#DF8048
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB307E

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

Preview Lab → · Contrast checker → · Palette generator →

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