#AB5CEF#AB5CEF

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

Color values

HEX#AB5CEF
RGBrgb(171, 92, 239)
HSLhsl(272, 82%, 65%)
HSVhsv(272, 62%, 94%)
CMYKcmyk(28.5%, 61.5%, 0%, 6.3%)
CIE-LABlab(54.60, 58.12, -61.77)
CIE-LCHlch(54.60, 84.81, 313.25°)
OKLaboklab(63.37% 0.1264 -0.1747)
OKLCHoklch(63.37% 0.216 305.9)
XYZxyz(36.1984, 22.5445, 84.0892)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CEF #A0EF5C
analogous
#625CEF #AB5CEF #EF5CE9
triadic
#AB5CEF #EFAB5C #5CEFAB
tetradic
#AB5CEF #EF625C #A0EF5C #5CE9EF
square
#AB5CEF #EF625C #A0EF5C #5CE9EF
split-complementary
#AB5CEF #E9EF5C #5CEF62
monochromatic
#6F13BE #8E24EA #AB5CEF #C894F4 #E4CBFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB5CEF#FFFFFF#000000##000000
##AB5CEF1.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)
#0080F4
Deuteranopia (green-blind)
#3C83EC
Tritanopia (blue-blind)
#9F7A9D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5cef;
/* rgb */ color: rgb(171, 92, 239);
/* oklch */ color: oklch(63.4% 0.216 305.9);
Tailwind
colors: {
  custom: {
    50: '#c88ef5',
    500: '#ab5cef',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cef;
$custom-light: #c88ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cef",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 272.245,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63369,
    "c": 0.21564,
    "h": 305.9
  },
  "luminance": 0.22544
}

Semantic roles & 50–950 ramp

primary
#AB5CEF
secondary
#D2ECBA
accent
#DF076B
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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