#AB308E#AB308E

#AB308E is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.187 H 339.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AB308E
RGBrgb(171, 48, 142)
HSLhsl(314, 56%, 43%)
HSVhsv(314, 72%, 67%)
CMYKcmyk(0%, 71.9%, 17%, 32.9%)
CIE-LABlab(42.35, 58.87, -24.81)
CIE-LCHlch(42.35, 63.88, 337.15°)
OKLaboklab(52.77% 0.1747 -0.0671)
OKLCHoklch(52.77% 0.187 339)
XYZxyz(22.7346, 12.7270, 26.8452)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB308E #30AB4D
analogous
#8A30AB #AB308E #AB3051
triadic
#AB308E #8EAB30 #308EAB
tetradic
#AB308E #AB8A30 #30AB4D #3051AB
square
#AB308E #AB8A30 #30AB4D #3051AB
split-complementary
#AB308E #51AB30 #30AB8A
monochromatic
#4B153F #7B2366 #AB308E #CD4CAE #DA7BC4

Accessibility & contrast

On white

5.92
#AB308E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB308E
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB308E#FFFFFF#000000##FFFFFF
##AB308E1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375891
Deuteranopia (green-blind)
#5F6B8B
Tritanopia (blue-blind)
#B5355B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab308e;
/* rgb */ color: rgb(171, 48, 142);
/* oklch */ color: oklch(52.8% 0.187 339.0);
Tailwind
colors: {
  custom: {
    50: '#c874af',
    500: '#ab308e',
    950: '#000000',
  },
}
SCSS
$custom: #ab308e;
$custom-light: #c874af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab308e",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 314.146,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52774,
    "c": 0.18716,
    "h": 339
  },
  "luminance": 0.12725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB308E

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

Preview Lab → · Contrast checker → · Palette generator →

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