#AB4DEB#AB4DEB

#AB4DEB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.3% C 0.231 H 308.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB4DEB
RGBrgb(171, 77, 235)
HSLhsl(276, 80%, 61%)
HSVhsv(276, 67%, 92%)
CMYKcmyk(27.2%, 67.2%, 0%, 7.8%)
CIE-LABlab(51.80, 64.24, -64.04)
CIE-LCHlch(51.80, 90.71, 315.09°)
OKLaboklab(61.27% 0.1432 -0.1813)
OKLCHoklch(61.27% 0.231 308.3)
XYZxyz(34.4408, 19.9644, 80.6203)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DEB #8DEB4D
analogous
#5C4DEB #AB4DEB #EB4DDC
triadic
#AB4DEB #EBAB4D #4DEBAB
tetradic
#AB4DEB #EB5C4D #8DEB4D #4DDCEB
square
#AB4DEB #EB5C4D #8DEB4D #4DDCEB
split-complementary
#AB4DEB #DCEB4D #4DEB5C
monochromatic
#6D13AA #9019E1 #AB4DEB #C584F1 #DFBBF7

Accessibility & contrast

On white

4.21
#AB4DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AB4DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4DEB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DEB#FFFFFF#000000##000000
##AB4DEB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#2B7DE8
Tritanopia (blue-blind)
#A16F96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4deb;
/* rgb */ color: rgb(171, 77, 235);
/* oklch */ color: oklch(61.3% 0.231 308.3);
Tailwind
colors: {
  custom: {
    50: '#c985f2',
    500: '#ab4deb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4deb;
$custom-light: #c985f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4deb",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 235
  },
  "hsl": {
    "h": 275.696,
    "s": 79.798,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61269,
    "c": 0.23106,
    "h": 308.3
  },
  "luminance": 0.19964
}

Semantic roles & 50–950 ramp

primary
#AB4DEB
secondary
#C4E8AC
accent
#DC095F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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