#AB4FE8#AB4FE8

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

Color values

HEX#AB4FE8
RGBrgb(171, 79, 232)
HSLhsl(276, 77%, 61%)
HSVhsv(276, 66%, 91%)
CMYKcmyk(26.3%, 65.9%, 0%, 9%)
CIE-LABlab(51.92, 62.69, -62.15)
CIE-LCHlch(51.92, 88.28, 315.25°)
OKLaboklab(61.3% 0.1414 -0.1758)
OKLCHoklch(61.3% 0.226 308.8)
XYZxyz(34.1531, 20.0767, 78.4043)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FE8 #8CE84F
analogous
#5E4FE8 #AB4FE8 #E84FD9
triadic
#AB4FE8 #E8AB4F #4FE8AB
tetradic
#AB4FE8 #E85E4F #8CE84F #4FD9E8
square
#AB4FE8 #E85E4F #8CE84F #4FD9E8
split-complementary
#AB4FE8 #D9E84F #4FE85E
monochromatic
#6D16A7 #901DDD #AB4FE8 #C585EF #DFBBF6

Accessibility & contrast

On white

4.19
#AB4FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4FE8#FFFFFF#000000##000000
##AB4FE81.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#337DE5
Tritanopia (blue-blind)
#A26F95
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab4fe8;
/* rgb */ color: rgb(171, 79, 232);
/* oklch */ color: oklch(61.3% 0.226 308.8);
Tailwind
colors: {
  custom: {
    50: '#c886f0',
    500: '#ab4fe8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fe8;
$custom-light: #c886f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fe8",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 276.078,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61298,
    "c": 0.22558,
    "h": 308.8
  },
  "luminance": 0.20076
}

Semantic roles & 50–950 ramp

primary
#AB4FE8
secondary
#C4E6AD
accent
#D90C5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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