#AB2EC2#AB2EC2

#AB2EC2 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.6% C 0.229 H 320.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AB2EC2
RGBrgb(171, 46, 194)
HSLhsl(291, 62%, 47%)
HSVhsv(291, 76%, 76%)
CMYKcmyk(11.9%, 76.3%, 0%, 23.9%)
CIE-LABlab(44.95, 68.00, -51.62)
CIE-LCHlch(44.95, 85.37, 322.80°)
OKLaboklab(55.56% 0.1774 -0.1447)
OKLCHoklch(55.56% 0.229 320.8)
XYZxyz(27.5080, 14.5084, 52.3800)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EC2 #45C22E
analogous
#612EC2 #AB2EC2 #C22E8F
triadic
#AB2EC2 #C2AB2E #2EC2AB
tetradic
#AB2EC2 #C2612E #45C22E #2E8FC2
square
#AB2EC2 #C2612E #45C22E #2E8FC2
split-complementary
#AB2EC2 #8FC22E #2EC261
monochromatic
#54175F #7F2291 #AB2EC2 #C356D7 #D588E3

Accessibility & contrast

On white

5.38
#AB2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AB2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EC2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EC2#FFFFFF#000000##FFFFFF
##AB2EC21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#3F6FBF
Tritanopia (blue-blind)
#AC4C77
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab2ec2;
/* rgb */ color: rgb(171, 46, 194);
/* oklch */ color: oklch(55.6% 0.229 320.8);
Tailwind
colors: {
  custom: {
    50: '#c875d5',
    500: '#ab2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ec2;
$custom-light: #c875d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ec2",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 290.676,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.22895,
    "h": 320.8
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#AB2EC2
secondary
#8BCC7F
accent
#E5435C
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140914
muted
#827B83

Preview Lab

Preview with #AB2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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