#AB2BFA#AB2BFA

#AB2BFA is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 59.4% C 0.278 H 307.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB2BFA
RGBrgb(171, 43, 250)
HSLhsl(277, 95%, 57%)
HSVhsv(277, 83%, 98%)
CMYKcmyk(31.6%, 82.8%, 0%, 2%)
CIE-LABlab(48.62, 79.53, -77.61)
CIE-LCHlch(48.62, 111.13, 315.70°)
OKLaboklab(59.37% 0.1683 -0.221)
OKLCHoklch(59.37% 0.278 307.3)
XYZxyz(34.9100, 17.2883, 91.9218)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BFA #7AFA2B
analogous
#432BFA #AB2BFA #FA2BE2
triadic
#AB2BFA #FAAB2B #2BFAAB
tetradic
#AB2BFA #FA432B #7AFA2B #2BE2FA
square
#AB2BFA #FA432B #7AFA2B #2BE2FA
split-complementary
#AB2BFA #E2FA2B #2BFA43
monochromatic
#6904A7 #8E05E2 #AB2BFA #C367FB #DAA3FD

Accessibility & contrast

On white

4.71
#AB2BFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AB2BFA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BFA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BFA#FFFFFF#000000##FFFFFF
##AB2BFA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#0074F6
Tritanopia (blue-blind)
#9D6697
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab2bfa;
/* rgb */ color: rgb(171, 43, 250);
/* oklch */ color: oklch(59.4% 0.278 307.3);
Tailwind
colors: {
  custom: {
    50: '#cb76fd',
    500: '#ab2bfa',
    950: '#000000',
  },
}
SCSS
$custom: #ab2bfa;
$custom-light: #cb76fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2bfa",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 250
  },
  "hsl": {
    "h": 277.101,
    "s": 95.392,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59368,
    "c": 0.27778,
    "h": 307.3
  },
  "luminance": 0.17288
}

Semantic roles & 50–950 ramp

primary
#AB2BFA
secondary
#B7EA97
accent
#FF297B
background
#FDF7FF
surface
#FAEEFF
border
#D3C9D7
text
#140A18
muted
#837C86

Preview Lab

Preview with #AB2BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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