#AB5BF5#AB5BF5

#AB5BF5 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.223 H 304.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AB5BF5
RGBrgb(171, 91, 245)
HSLhsl(271, 89%, 66%)
HSVhsv(271, 63%, 96%)
CMYKcmyk(30.2%, 62.9%, 0%, 3.9%)
CIE-LABlab(54.80, 59.97, -64.80)
CIE-LCHlch(54.80, 88.29, 312.78°)
OKLaboklab(63.63% 0.1272 -0.1836)
OKLCHoklch(63.63% 0.223 304.7)
XYZxyz(37.0134, 22.7329, 88.8064)
Luminance0.2273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BF5 #A5F55B
analogous
#5E5BF5 #AB5BF5 #F55BF2
triadic
#AB5BF5 #F5AB5B #5BF5AB
tetradic
#AB5BF5 #F55E5B #A5F55B #5BF2F5
square
#AB5BF5 #F55E5B #A5F55B #5BF2F5
split-complementary
#AB5BF5 #F2F55B #5BF55E
monochromatic
#6E0CC9 #8D21F1 #AB5BF5 #C995F9 #E6CEFC

Accessibility & contrast

On white

3.79
#AB5BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AB5BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BF5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BF5#FFFFFF#000000##000000
##AB5BF51.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FA
Deuteranopia (green-blind)
#3283F2
Tritanopia (blue-blind)
#9E7CA0
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5bf5;
/* rgb */ color: rgb(171, 91, 245);
/* oklch */ color: oklch(63.6% 0.223 304.7);
Tailwind
colors: {
  custom: {
    50: '#c98ef9',
    500: '#ab5bf5',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bf5;
$custom-light: #c98ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bf5",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 245
  },
  "hsl": {
    "h": 271.169,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63631,
    "c": 0.22337,
    "h": 304.7
  },
  "luminance": 0.22733
}

Semantic roles & 50–950 ramp

primary
#AB5BF5
secondary
#D5EFBC
accent
#E5006E
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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