#AB5BF2#AB5BF2

#AB5BF2 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.4% C 0.220 H 305.3°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB5BF2
RGBrgb(171, 91, 242)
HSLhsl(272, 85%, 65%)
HSVhsv(272, 62%, 95%)
CMYKcmyk(29.3%, 62.4%, 0%, 5.1%)
CIE-LABlab(54.61, 59.29, -63.43)
CIE-LCHlch(54.61, 86.83, 313.06°)
OKLaboklab(63.43% 0.1274 -0.1796)
OKLCHoklch(63.43% 0.22 305.3)
XYZxyz(36.5592, 22.5512, 86.4140)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BF2 #A2F25B
analogous
#5F5BF2 #AB5BF2 #F25BEE
triadic
#AB5BF2 #F2AB5B #5BF2AB
tetradic
#AB5BF2 #F25F5B #A2F25B #5BEEF2
square
#AB5BF2 #F25F5B #A2F25B #5BEEF2
split-complementary
#AB5BF2 #EEF25B #5BF25F
monochromatic
#6F0FC3 #8E22EE #AB5BF2 #C894F6 #E5CCFB

Accessibility & contrast

On white

3.81
#AB5BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AB5BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BF2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BF2#FFFFFF#000000##000000
##AB5BF21.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#3683EF
Tritanopia (blue-blind)
#9F7B9E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5bf2;
/* rgb */ color: rgb(171, 91, 242);
/* oklch */ color: oklch(63.4% 0.220 305.3);
Tailwind
colors: {
  custom: {
    50: '#c88ef7',
    500: '#ab5bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bf2;
$custom-light: #c88ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bf2",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 271.788,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63434,
    "c": 0.22019,
    "h": 305.3
  },
  "luminance": 0.22551
}

Semantic roles & 50–950 ramp

primary
#AB5BF2
secondary
#D3EEBB
accent
#E2046C
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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