#AB2BE2#AB2BE2

#AB2BE2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.5% C 0.258 H 312.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB2BE2
RGBrgb(171, 43, 226)
HSLhsl(282, 76%, 53%)
HSVhsv(282, 81%, 89%)
CMYKcmyk(24.3%, 81%, 0%, 11.4%)
CIE-LABlab(46.81, 74.84, -67.02)
CIE-LCHlch(46.81, 100.46, 318.15°)
OKLaboklab(57.55% 0.1744 -0.1899)
OKLCHoklch(57.55% 0.258 312.6)
XYZxyz(31.3834, 15.8776, 73.3482)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BE2 #62E22B
analogous
#4F2BE2 #AB2BE2 #E22BBE
triadic
#AB2BE2 #E2AB2B #2BE2AB
tetradic
#AB2BE2 #E24F2B #62E22B #2BBEE2
square
#AB2BE2 #E24F2B #62E22B #2BBEE2
split-complementary
#AB2BE2 #BEE22B #2BE24F
monochromatic
#601281 #8719B7 #AB2BE2 #C061E9 #D697F1

Accessibility & contrast

On white

5.03
#AB2BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AB2BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BE2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BE2#FFFFFF#000000##FFFFFF
##AB2BE21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#A45A89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab2be2;
/* rgb */ color: rgb(171, 43, 226);
/* oklch */ color: oklch(57.5% 0.258 312.6);
Tailwind
colors: {
  custom: {
    50: '#ca75ec',
    500: '#ab2be2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2be2;
$custom-light: #ca75ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2be2",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 281.967,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57549,
    "c": 0.25783,
    "h": 312.6
  },
  "luminance": 0.15877
}

Semantic roles & 50–950 ramp

primary
#AB2BE2
secondary
#A5DC8D
accent
#F3356E
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AB2BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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