#AB309A#AB309A

#AB309A is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.4% C 0.196 H 334.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AB309A
RGBrgb(171, 48, 154)
HSLhsl(308, 56%, 43%)
HSVhsv(308, 72%, 67%)
CMYKcmyk(0%, 71.9%, 9.9%, 32.9%)
CIE-LABlab(42.92, 60.66, -31.17)
CIE-LCHlch(42.92, 68.20, 332.80°)
OKLaboklab(53.38% 0.1761 -0.0853)
OKLCHoklch(53.38% 0.196 334.2)
XYZxyz(23.6845, 13.1069, 31.8481)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB309A #30AB41
analogous
#7F30AB #AB309A #AB305C
triadic
#AB309A #9AAB30 #309AAB
tetradic
#AB309A #AB7F30 #30AB41 #305CAB
square
#AB309A #AB7F30 #30AB41 #305CAB
split-complementary
#AB309A #5CAB30 #30AB7F
monochromatic
#4B1544 #7B236F #AB309A #CD4CBB #DA7BCD

Accessibility & contrast

On white

5.80
#AB309A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB309A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB309A
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB309A#FFFFFF#000000##FFFFFF
##AB309A1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5A9D
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#B33B61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab309a;
/* rgb */ color: rgb(171, 48, 154);
/* oklch */ color: oklch(53.4% 0.196 334.2);
Tailwind
colors: {
  custom: {
    50: '#c874b8',
    500: '#ab309a',
    950: '#000000',
  },
}
SCSS
$custom: #ab309a;
$custom-light: #c874b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab309a",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 308.293,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53377,
    "c": 0.19563,
    "h": 334.2
  },
  "luminance": 0.13105
}

Semantic roles & 50–950 ramp

primary
#AB309A
secondary
#74C37F
accent
#DF5D48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB309A

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

Preview Lab → · Contrast checker → · Palette generator →

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