#AB25B1#AB25B1

#AB25B1 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.224 H 326.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB25B1
RGBrgb(171, 37, 177)
HSLhsl(297, 65%, 42%)
HSVhsv(297, 79%, 69%)
CMYKcmyk(3.4%, 79.1%, 0%, 30.6%)
CIE-LABlab(43.00, 67.72, -44.77)
CIE-LCHlch(43.00, 81.18, 326.53°)
OKLaboklab(53.84% 0.186 -0.1246)
OKLCHoklch(53.84% 0.224 326.2)
XYZxyz(25.3915, 13.1572, 42.7887)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB25B1 #2BB125
analogous
#6525B1 #AB25B1 #B12571
triadic
#AB25B1 #B1AB25 #25B1AB
tetradic
#AB25B1 #B16525 #2BB125 #2571B1
square
#AB25B1 #B16525 #2BB125 #2571B1
split-complementary
#AB25B1 #71B125 #25B165
monochromatic
#49104C #7A1A7E #AB25B1 #D03DD6 #DC6FE1

Accessibility & contrast

On white

5.78
#AB25B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB25B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB25B1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB25B1#FFFFFF#000000##FFFFFF
##AB25B11.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#486BAE
Tritanopia (blue-blind)
#AF3F6B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab25b1;
/* rgb */ color: rgb(171, 37, 177);
/* oklch */ color: oklch(53.8% 0.224 326.2);
Tailwind
colors: {
  custom: {
    50: '#c871c9',
    500: '#ab25b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab25b1;
$custom-light: #c871c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab25b1",
  "rgb": {
    "r": 171,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 297.429,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53837,
    "c": 0.22391,
    "h": 326.2
  },
  "luminance": 0.13155
}

Semantic roles & 50–950 ramp

primary
#AB25B1
secondary
#6EC86A
accent
#E83F47
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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