#AB4FED#AB4FED

#AB4FED is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.231 H 307.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB4FED
RGBrgb(171, 79, 237)
HSLhsl(275, 81%, 62%)
HSVhsv(275, 67%, 93%)
CMYKcmyk(27.8%, 66.7%, 0%, 7.1%)
CIE-LABlab(52.25, 63.78, -64.44)
CIE-LCHlch(52.25, 90.67, 314.70°)
OKLaboklab(61.63% 0.1409 -0.1825)
OKLCHoklch(61.63% 0.231 307.7)
XYZxyz(34.8734, 20.3648, 82.1980)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FED #91ED4F
analogous
#5C4FED #AB4FED #ED4FE0
triadic
#AB4FED #EDAB4F #4FEDAB
tetradic
#AB4FED #ED5C4F #91ED4F #4FE0ED
square
#AB4FED #ED5C4F #91ED4F #4FE0ED
split-complementary
#AB4FED #E0ED4F #4FED5C
monochromatic
#6E12B0 #9018E7 #AB4FED #C587F3 #E0BEF8

Accessibility & contrast

On white

4.14
#AB4FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AB4FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FED
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FED#FFFFFF#000000##000000
##AB4FED1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F2
Deuteranopia (green-blind)
#2B7DEA
Tritanopia (blue-blind)
#A07198
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab4fed;
/* rgb */ color: rgb(171, 79, 237);
/* oklch */ color: oklch(61.6% 0.231 307.7);
Tailwind
colors: {
  custom: {
    50: '#c986f4',
    500: '#ab4fed',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fed;
$custom-light: #c986f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fed",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 237
  },
  "hsl": {
    "h": 274.937,
    "s": 81.443,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.23056,
    "h": 307.7
  },
  "luminance": 0.20364
}

Semantic roles & 50–950 ramp

primary
#AB4FED
secondary
#C7E9AF
accent
#DE0861
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4FED

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

Preview Lab → · Contrast checker → · Palette generator →

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