#AB2FE2#AB2FE2

#AB2FE2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.8% C 0.255 H 312.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB2FE2
RGBrgb(171, 47, 226)
HSLhsl(282, 76%, 54%)
HSVhsv(282, 79%, 89%)
CMYKcmyk(24.3%, 79.2%, 0%, 11.4%)
CIE-LABlab(47.21, 73.67, -66.38)
CIE-LCHlch(47.21, 99.16, 317.98°)
OKLaboklab(57.83% 0.1716 -0.188)
OKLCHoklch(57.83% 0.255 312.4)
XYZxyz(31.5360, 16.1829, 73.3991)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FE2 #66E22F
analogous
#512FE2 #AB2FE2 #E22FBF
triadic
#AB2FE2 #E2AB2F #2FE2AB
tetradic
#AB2FE2 #E2512F #66E22F #2FBFE2
square
#AB2FE2 #E2512F #66E22F #2FBFE2
split-complementary
#AB2FE2 #BFE22F #2FE251
monochromatic
#611284 #891ABA #AB2FE2 #C165E9 #D69AF1

Accessibility & contrast

On white

4.96
#AB2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AB2FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FE2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FE2#FFFFFF#000000##FFFFFF
##AB2FE21.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#0272DE
Tritanopia (blue-blind)
#A45C8A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab2fe2;
/* rgb */ color: rgb(171, 47, 226);
/* oklch */ color: oklch(57.8% 0.255 312.4);
Tailwind
colors: {
  custom: {
    50: '#c977ec',
    500: '#ab2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fe2;
$custom-light: #c977ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fe2",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 281.564,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57829,
    "c": 0.25454,
    "h": 312.4
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#AB2FE2
secondary
#A8DD90
accent
#F23670
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AB2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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