#AB4FE4#AB4FE4

#AB4FE4 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.0% C 0.222 H 309.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB4FE4
RGBrgb(171, 79, 228)
HSLhsl(277, 73%, 60%)
HSVhsv(277, 65%, 89%)
CMYKcmyk(25%, 65.4%, 0%, 10.6%)
CIE-LABlab(51.67, 61.83, -60.31)
CIE-LCHlch(51.67, 86.37, 315.71°)
OKLaboklab(61.03% 0.1417 -0.1704)
OKLCHoklch(61.03% 0.222 309.7)
XYZxyz(33.5914, 19.8520, 75.4460)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FE4 #88E44F
analogous
#604FE4 #AB4FE4 #E44FD2
triadic
#AB4FE4 #E4AB4F #4FE4AB
tetradic
#AB4FE4 #E4604F #88E44F #4FD2E4
square
#AB4FE4 #E4604F #88E44F #4FD2E4
split-complementary
#AB4FE4 #D2E44F #4FE460
monochromatic
#6C19A0 #9021D5 #AB4FE4 #C484EC #DEB9F4

Accessibility & contrast

On white

4.23
#AB4FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AB4FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FE4
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FE4#FFFFFF#000000##000000
##AB4FE41.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#387DE1
Tritanopia (blue-blind)
#A36E93
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4fe4;
/* rgb */ color: rgb(171, 79, 228);
/* oklch */ color: oklch(61.0% 0.222 309.7);
Tailwind
colors: {
  custom: {
    50: '#c886ed',
    500: '#ab4fe4',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fe4;
$custom-light: #c886ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fe4",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 228
  },
  "hsl": {
    "h": 277.047,
    "s": 73.399,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61034,
    "c": 0.22158,
    "h": 309.7
  },
  "luminance": 0.19851
}

Semantic roles & 50–950 ramp

primary
#AB4FE4
secondary
#C1E4AB
accent
#D6105C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB4FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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