#AB5FEB#AB5FEB

#AB5FEB is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.5% C 0.207 H 306.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AB5FEB
RGBrgb(171, 95, 235)
HSLhsl(273, 78%, 65%)
HSVhsv(273, 60%, 92%)
CMYKcmyk(27.2%, 59.6%, 0%, 7.8%)
CIE-LABlab(54.91, 55.72, -59.04)
CIE-LCHlch(54.91, 81.18, 313.34°)
OKLaboklab(63.52% 0.123 -0.1667)
OKLCHoklch(63.52% 0.207 306.4)
XYZxyz(35.8790, 22.8408, 81.0997)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FEB #9FEB5F
analogous
#655FEB #AB5FEB #EB5FE5
triadic
#AB5FEB #EBAB5F #5FEBAB
tetradic
#AB5FEB #EB655F #9FEB5F #5FE5EB
square
#AB5FEB #EB655F #9FEB5F #5FE5EB
split-complementary
#AB5FEB #E5EB5F #5FEB65
monochromatic
#6F17B9 #8E29E4 #AB5FEB #C895F2 #E4CCF9

Accessibility & contrast

On white

3.77
#AB5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AB5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FEB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FEB#FFFFFF#000000##000000
##AB5FEB1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D81EF
Deuteranopia (green-blind)
#4584E8
Tritanopia (blue-blind)
#A17B9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5feb;
/* rgb */ color: rgb(171, 95, 235);
/* oklch */ color: oklch(63.5% 0.207 306.4);
Tailwind
colors: {
  custom: {
    50: '#c890f2',
    500: '#ab5feb',
    950: '#000000',
  },
}
SCSS
$custom: #ab5feb;
$custom-light: #c890f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5feb",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 272.571,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63515,
    "c": 0.20717,
    "h": 306.4
  },
  "luminance": 0.22841
}

Semantic roles & 50–950 ramp

primary
#AB5FEB
secondary
#D1EBBB
accent
#DA0B6A
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AB5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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