#AB5BEB#AB5BEB

#AB5BEB is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.0% C 0.213 H 306.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AB5BEB
RGBrgb(171, 91, 235)
HSLhsl(273, 78%, 64%)
HSVhsv(273, 61%, 92%)
CMYKcmyk(27.2%, 61.3%, 0%, 7.8%)
CIE-LABlab(54.17, 57.70, -60.22)
CIE-LCHlch(54.17, 83.40, 313.78°)
OKLaboklab(62.98% 0.1277 -0.1702)
OKLCHoklch(62.98% 0.213 306.9)
XYZxyz(35.5279, 22.1386, 80.9827)
Luminance0.2214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BEB #9BEB5B
analogous
#635BEB #AB5BEB #EB5BE3
triadic
#AB5BEB #EBAB5B #5BEBAB
tetradic
#AB5BEB #EB635B #9BEB5B #5BE3EB
square
#AB5BEB #EB635B #9BEB5B #5BE3EB
split-complementary
#AB5BEB #E3EB5B #5BEB63
monochromatic
#6F16B5 #8F24E4 #AB5BEB #C792F2 #E3C8F8

Accessibility & contrast

On white

3.87
#AB5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#AB5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BEB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BEB#FFFFFF#000000##000000
##AB5BEB1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#067FF0
Deuteranopia (green-blind)
#3F82E8
Tritanopia (blue-blind)
#A1789B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5beb;
/* rgb */ color: rgb(171, 91, 235);
/* oklch */ color: oklch(63.0% 0.213 306.9);
Tailwind
colors: {
  custom: {
    50: '#c88df2',
    500: '#ab5beb',
    950: '#000000',
  },
}
SCSS
$custom: #ab5beb;
$custom-light: #c88df2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5beb",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 273.333,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62982,
    "c": 0.21274,
    "h": 306.9
  },
  "luminance": 0.22138
}

Semantic roles & 50–950 ramp

primary
#AB5BEB
secondary
#CEEAB8
accent
#DB0B67
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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