#AB299E#AB299E

#AB299E is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.206 H 332.6°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB299E
RGBrgb(171, 41, 158)
HSLhsl(306, 61%, 42%)
HSVhsv(306, 76%, 67%)
CMYKcmyk(0%, 76%, 7.6%, 32.9%)
CIE-LABlab(42.33, 63.55, -34.51)
CIE-LCHlch(42.33, 72.31, 331.50°)
OKLaboklab(53.02% 0.183 -0.0948)
OKLCHoklch(53.02% 0.206 332.6)
XYZxyz(23.7592, 12.7144, 33.5439)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB299E #29AB36
analogous
#7729AB #AB299E #AB295D
triadic
#AB299E #9EAB29 #299EAB
tetradic
#AB299E #AB7729 #29AB36 #295DAB
square
#AB299E #AB7729 #29AB36 #295DAB
split-complementary
#AB299E #5DAB29 #29AB77
monochromatic
#481143 #7A1D70 #AB299E #D140C3 #DD71D2

Accessibility & contrast

On white

5.93
#AB299E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB299E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB299E
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB299E#FFFFFF#000000##FFFFFF
##AB299E1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2158A1
Deuteranopia (green-blind)
#556A9B
Tritanopia (blue-blind)
#B33862
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab299e;
/* rgb */ color: rgb(171, 41, 158);
/* oklch */ color: oklch(53.0% 0.206 332.6);
Tailwind
colors: {
  custom: {
    50: '#c871bb',
    500: '#ab299e',
    950: '#000000',
  },
}
SCSS
$custom: #ab299e;
$custom-light: #c871bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab299e",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 306,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53016,
    "c": 0.2061,
    "h": 332.6
  },
  "luminance": 0.12712
}

Semantic roles & 50–950 ramp

primary
#AB299E
secondary
#6CC474
accent
#E45343
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB299E

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

Preview Lab → · Contrast checker → · Palette generator →

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