#AB5CEB#AB5CEB

#AB5CEB is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.1% C 0.211 H 306.8°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AB5CEB
RGBrgb(171, 92, 235)
HSLhsl(273, 78%, 64%)
HSVhsv(273, 61%, 92%)
CMYKcmyk(27.2%, 60.9%, 0%, 7.8%)
CIE-LABlab(54.36, 57.21, -59.93)
CIE-LCHlch(54.36, 82.85, 313.67°)
OKLaboklab(63.11% 0.1265 -0.1693)
OKLCHoklch(63.11% 0.211 306.8)
XYZxyz(35.6140, 22.3108, 81.0114)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CEB #9CEB5C
analogous
#645CEB #AB5CEB #EB5CE3
triadic
#AB5CEB #EBAB5C #5CEBAB
tetradic
#AB5CEB #EB645C #9CEB5C #5CE3EB
square
#AB5CEB #EB645C #9CEB5C #5CE3EB
split-complementary
#AB5CEB #E3EB5C #5CEB64
monochromatic
#6F16B6 #8F25E4 #AB5CEB #C793F2 #E3C9F8

Accessibility & contrast

On white

3.84
#AB5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#AB5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CEB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CEB#FFFFFF#000000##000000
##AB5CEB1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E7FEF
Deuteranopia (green-blind)
#4183E8
Tritanopia (blue-blind)
#A1799B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5ceb;
/* rgb */ color: rgb(171, 92, 235);
/* oklch */ color: oklch(63.1% 0.211 306.8);
Tailwind
colors: {
  custom: {
    50: '#c88ef2',
    500: '#ab5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ceb;
$custom-light: #c88ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ceb",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 273.147,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63113,
    "c": 0.21137,
    "h": 306.8
  },
  "luminance": 0.2231
}

Semantic roles & 50–950 ramp

primary
#AB5CEB
secondary
#CFEAB8
accent
#DA0B68
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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