#AB4EEB#AB4EEB

#AB4EEB is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.4% C 0.230 H 308.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AB4EEB
RGBrgb(171, 78, 235)
HSLhsl(276, 80%, 61%)
HSVhsv(276, 67%, 92%)
CMYKcmyk(27.2%, 66.8%, 0%, 7.8%)
CIE-LABlab(51.96, 63.79, -63.79)
CIE-LCHlch(51.96, 90.21, 315.00°)
OKLaboklab(61.38% 0.1422 -0.1806)
OKLCHoklch(61.38% 0.23 308.2)
XYZxyz(34.5113, 20.1054, 80.6438)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EEB #8EEB4E
analogous
#5D4EEB #AB4EEB #EB4EDD
triadic
#AB4EEB #EBAB4E #4EEBAB
tetradic
#AB4EEB #EB5D4E #8EEB4E #4EDDEB
square
#AB4EEB #EB5D4E #8EEB4E #4EDDEB
split-complementary
#AB4EEB #DDEB4E #4EEB5D
monochromatic
#6D13AB #901AE2 #AB4EEB #C585F1 #DFBCF7

Accessibility & contrast

On white

4.18
#AB4EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AB4EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EEB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EEB#FFFFFF#000000##000000
##AB4EEB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#2D7DE8
Tritanopia (blue-blind)
#A17096
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab4eeb;
/* rgb */ color: rgb(171, 78, 235);
/* oklch */ color: oklch(61.4% 0.230 308.2);
Tailwind
colors: {
  custom: {
    50: '#c986f2',
    500: '#ab4eeb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eeb;
$custom-light: #c986f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eeb",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 235
  },
  "hsl": {
    "h": 275.541,
    "s": 79.695,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61383,
    "c": 0.22982,
    "h": 308.2
  },
  "luminance": 0.20105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB4EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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