#AB5DEF#AB5DEF

#AB5DEF is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.5% C 0.214 H 305.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB5DEF
RGBrgb(171, 93, 239)
HSLhsl(272, 82%, 65%)
HSVhsv(272, 61%, 94%)
CMYKcmyk(28.5%, 61.1%, 0%, 6.3%)
CIE-LABlab(54.78, 57.62, -61.48)
CIE-LCHlch(54.78, 84.26, 313.15°)
OKLaboklab(63.5% 0.1252 -0.1739)
OKLCHoklch(63.5% 0.214 305.8)
XYZxyz(36.2856, 22.7189, 84.1182)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DEF #A1EF5D
analogous
#625DEF #AB5DEF #EF5DEA
triadic
#AB5DEF #EFAB5D #5DEFAB
tetradic
#AB5DEF #EF625D #A1EF5D #5DEAEF
square
#AB5DEF #EF625D #A1EF5D #5DEAEF
split-complementary
#AB5DEF #EAEF5D #5DEF62
monochromatic
#6F13BF #8E25E9 #AB5DEF #C895F5 #E5CCFA

Accessibility & contrast

On white

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

On black

5.54
#AB5DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DEF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DEF#FFFFFF#000000##000000
##AB5DEF1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0181F4
Deuteranopia (green-blind)
#3D83EC
Tritanopia (blue-blind)
#9F7B9E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5def;
/* rgb */ color: rgb(171, 93, 239);
/* oklch */ color: oklch(63.5% 0.214 305.8);
Tailwind
colors: {
  custom: {
    50: '#c88ff5',
    500: '#ab5def',
    950: '#000000',
  },
}
SCSS
$custom: #ab5def;
$custom-light: #c88ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5def",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 272.055,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63501,
    "c": 0.21427,
    "h": 305.8
  },
  "luminance": 0.22719
}

Semantic roles & 50–950 ramp

primary
#AB5DEF
secondary
#D2EDBB
accent
#DE076B
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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