#AB309D#AB309D

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

Color values

HEX#AB309D
RGBrgb(171, 48, 157)
HSLhsl(307, 56%, 43%)
HSVhsv(307, 72%, 67%)
CMYKcmyk(0%, 71.9%, 8.2%, 32.9%)
CIE-LABlab(43.08, 61.12, -32.73)
CIE-LCHlch(43.08, 69.33, 331.83°)
OKLaboklab(53.54% 0.1763 -0.0898)
OKLCHoklch(53.54% 0.198 333)
XYZxyz(23.9375, 13.2081, 33.1804)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB309D #30AB3E
analogous
#7B30AB #AB309D #AB3060
triadic
#AB309D #9DAB30 #309DAB
tetradic
#AB309D #AB7B30 #30AB3E #3060AB
square
#AB309D #AB7B30 #30AB3E #3060AB
split-complementary
#AB309D #60AB30 #30AB7B
monochromatic
#4B1545 #7B2371 #AB309D #CD4CBE #DA7BCF

Accessibility & contrast

On white

5.77
#AB309D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AB309D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB309D
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB309D#FFFFFF#000000##FFFFFF
##AB309D1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5AA0
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#B33C63
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab309d;
/* rgb */ color: rgb(171, 48, 157);
/* oklch */ color: oklch(53.5% 0.198 333.0);
Tailwind
colors: {
  custom: {
    50: '#c874ba',
    500: '#ab309d',
    950: '#000000',
  },
}
SCSS
$custom: #ab309d;
$custom-light: #c874ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab309d",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 306.829,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53535,
    "c": 0.19784,
    "h": 333
  },
  "luminance": 0.13206
}

Semantic roles & 50–950 ramp

primary
#AB309D
secondary
#74C37D
accent
#DF5A48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB309D

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

Preview Lab → · Contrast checker → · Palette generator →

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