#AB5CF4#AB5CF4

#AB5CF4 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.7% C 0.221 H 304.8°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AB5CF4
RGBrgb(171, 92, 244)
HSLhsl(271, 87%, 66%)
HSVhsv(271, 62%, 96%)
CMYKcmyk(29.9%, 62.3%, 0%, 4.3%)
CIE-LABlab(54.91, 59.26, -64.06)
CIE-LCHlch(54.91, 87.26, 312.77°)
OKLaboklab(63.69% 0.1261 -0.1814)
OKLCHoklch(63.69% 0.221 304.8)
XYZxyz(36.9473, 22.8441, 88.0333)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CF4 #A5F45C
analogous
#5F5CF4 #AB5CF4 #F45CF1
triadic
#AB5CF4 #F4AB5C #5CF4AB
tetradic
#AB5CF4 #F45F5C #A5F45C #5CF1F4
square
#AB5CF4 #F45F5C #A5F45C #5CF1F4
split-complementary
#AB5CF4 #F1F45C #5CF45F
monochromatic
#6E0EC8 #8D23F0 #AB5CF4 #C995F8 #E6CFFC

Accessibility & contrast

On white

3.77
#AB5CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AB5CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CF4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CF4#FFFFFF#000000##000000
##AB5CF41.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F9
Deuteranopia (green-blind)
#3584F1
Tritanopia (blue-blind)
#9E7CA0
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5cf4;
/* rgb */ color: rgb(171, 92, 244);
/* oklch */ color: oklch(63.7% 0.221 304.8);
Tailwind
colors: {
  custom: {
    50: '#c88ef9',
    500: '#ab5cf4',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cf4;
$custom-light: #c88ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cf4",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 244
  },
  "hsl": {
    "h": 271.184,
    "s": 87.356,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63694,
    "c": 0.22098,
    "h": 304.8
  },
  "luminance": 0.22844
}

Semantic roles & 50–950 ramp

primary
#AB5CF4
secondary
#D5EFBD
accent
#E4026E
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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