#AB4FEC#AB4FEC

#AB4FEC is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.6% C 0.230 H 307.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB4FEC
RGBrgb(171, 79, 236)
HSLhsl(275, 81%, 62%)
HSVhsv(275, 67%, 93%)
CMYKcmyk(27.5%, 66.5%, 0%, 7.5%)
CIE-LABlab(52.18, 63.56, -63.98)
CIE-LCHlch(52.18, 90.19, 314.81°)
OKLaboklab(61.57% 0.141 -0.1812)
OKLCHoklch(61.57% 0.23 307.9)
XYZxyz(34.7278, 20.3065, 81.4307)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FEC #90EC4F
analogous
#5D4FEC #AB4FEC #EC4FDF
triadic
#AB4FEC #ECAB4F #4FECAB
tetradic
#AB4FEC #EC5D4F #90EC4F #4FDFEC
square
#AB4FEC #EC5D4F #90EC4F #4FDFEC
split-complementary
#AB4FEC #DFEC4F #4FEC5D
monochromatic
#6E13AE #9019E5 #AB4FEC #C586F2 #E0BDF8

Accessibility & contrast

On white

4.15
#AB4FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AB4FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FEC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FEC#FFFFFF#000000##000000
##AB4FEC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#2C7DE9
Tritanopia (blue-blind)
#A17197
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab4fec;
/* rgb */ color: rgb(171, 79, 236);
/* oklch */ color: oklch(61.6% 0.230 307.9);
Tailwind
colors: {
  custom: {
    50: '#c986f3',
    500: '#ab4fec',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fec;
$custom-light: #c986f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fec",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 275.159,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61565,
    "c": 0.22957,
    "h": 307.9
  },
  "luminance": 0.20306
}

Semantic roles & 50–950 ramp

primary
#AB4FEC
secondary
#C6E8AE
accent
#DD0961
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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