#AB3097#AB3097

#AB3097 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.193 H 335.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AB3097
RGBrgb(171, 48, 151)
HSLhsl(310, 56%, 43%)
HSVhsv(310, 72%, 67%)
CMYKcmyk(0%, 71.9%, 11.7%, 32.9%)
CIE-LABlab(42.78, 60.20, -29.59)
CIE-LCHlch(42.78, 67.08, 333.82°)
OKLaboklab(53.22% 0.1758 -0.0808)
OKLCHoklch(53.22% 0.193 335.3)
XYZxyz(23.4377, 13.0083, 30.5486)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3097 #30AB44
analogous
#8130AB #AB3097 #AB3059
triadic
#AB3097 #97AB30 #3097AB
tetradic
#AB3097 #AB8130 #30AB44 #3059AB
square
#AB3097 #AB8130 #30AB44 #3059AB
split-complementary
#AB3097 #59AB30 #30AB81
monochromatic
#4B1543 #7B236D #AB3097 #CD4CB8 #DA7BCB

Accessibility & contrast

On white

5.83
#AB3097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB3097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3097
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3097#FFFFFF#000000##FFFFFF
##AB30971.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#5B6C94
Tritanopia (blue-blind)
#B43960
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab3097;
/* rgb */ color: rgb(171, 48, 151);
/* oklch */ color: oklch(53.2% 0.193 335.3);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ab3097',
    950: '#000000',
  },
}
SCSS
$custom: #ab3097;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3097",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 309.756,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53222,
    "c": 0.19346,
    "h": 335.3
  },
  "luminance": 0.13006
}

Semantic roles & 50–950 ramp

primary
#AB3097
secondary
#74C381
accent
#DF6148
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB3097

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

Preview Lab → · Contrast checker → · Palette generator →

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