#AB23B1#AB23B1

#AB23B1 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.226 H 326.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AB23B1
RGBrgb(171, 35, 177)
HSLhsl(297, 67%, 42%)
HSVhsv(297, 80%, 69%)
CMYKcmyk(3.4%, 80.2%, 0%, 30.6%)
CIE-LABlab(42.82, 68.24, -45.06)
CIE-LCHlch(42.82, 81.78, 326.56°)
OKLaboklab(53.71% 0.1875 -0.1254)
OKLCHoklch(53.71% 0.226 326.2)
XYZxyz(25.3309, 13.0361, 42.7685)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB23B1 #29B123
analogous
#6423B1 #AB23B1 #B12370
triadic
#AB23B1 #B1AB23 #23B1AB
tetradic
#AB23B1 #B16423 #29B123 #2370B1
square
#AB23B1 #B16423 #29B123 #2370B1
split-complementary
#AB23B1 #70B123 #23B164
monochromatic
#480F4B #7A197E #AB23B1 #D139D8 #DD6CE2

Accessibility & contrast

On white

5.82
#AB23B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB23B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB23B1
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB23B1#FFFFFF#000000##FFFFFF
##AB23B11.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#476BAE
Tritanopia (blue-blind)
#AF3E6B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab23b1;
/* rgb */ color: rgb(171, 35, 177);
/* oklch */ color: oklch(53.7% 0.226 326.2);
Tailwind
colors: {
  custom: {
    50: '#c870c9',
    500: '#ab23b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab23b1;
$custom-light: #c870c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab23b1",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 297.465,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53708,
    "c": 0.22559,
    "h": 326.2
  },
  "luminance": 0.13034
}

Semantic roles & 50–950 ramp

primary
#AB23B1
secondary
#6CC868
accent
#EA3E45
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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