#AB309C#AB309C

#AB309C is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.5% C 0.197 H 333.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB309C
RGBrgb(171, 48, 156)
HSLhsl(307, 56%, 43%)
HSVhsv(307, 72%, 67%)
CMYKcmyk(0%, 71.9%, 8.8%, 32.9%)
CIE-LABlab(43.02, 60.96, -32.21)
CIE-LCHlch(43.02, 68.95, 332.15°)
OKLaboklab(53.48% 0.1762 -0.0883)
OKLCHoklch(53.48% 0.197 333.4)
XYZxyz(23.8524, 13.1741, 32.7327)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB309C #30AB3F
analogous
#7C30AB #AB309C #AB305E
triadic
#AB309C #9CAB30 #309CAB
tetradic
#AB309C #AB7C30 #30AB3F #305EAB
square
#AB309C #AB7C30 #30AB3F #305EAB
split-complementary
#AB309C #5EAB30 #30AB7C
monochromatic
#4B1545 #7B2370 #AB309C #CD4CBD #DA7BCE

Accessibility & contrast

On white

5.78
#AB309C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB309C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB309C
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB309C#FFFFFF#000000##FFFFFF
##AB309C1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#B33C62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab309c;
/* rgb */ color: rgb(171, 48, 156);
/* oklch */ color: oklch(53.5% 0.197 333.4);
Tailwind
colors: {
  custom: {
    50: '#c874b9',
    500: '#ab309c',
    950: '#000000',
  },
}
SCSS
$custom: #ab309c;
$custom-light: #c874b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab309c",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 307.317,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53482,
    "c": 0.1971,
    "h": 333.4
  },
  "luminance": 0.13172
}

Semantic roles & 50–950 ramp

primary
#AB309C
secondary
#74C37E
accent
#DF5B48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB309C

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

Preview Lab → · Contrast checker → · Palette generator →

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