#AB4EF1#AB4EF1

#AB4EF1 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.8% C 0.236 H 306.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB4EF1
RGBrgb(171, 78, 241)
HSLhsl(274, 85%, 63%)
HSVhsv(274, 68%, 95%)
CMYKcmyk(29%, 67.6%, 0%, 5.5%)
CIE-LABlab(52.35, 65.10, -66.51)
CIE-LCHlch(52.35, 93.07, 314.38°)
OKLaboklab(61.79% 0.1415 -0.1886)
OKLCHoklch(61.79% 0.236 306.9)
XYZxyz(35.3928, 20.4580, 85.2863)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EF1 #94F14E
analogous
#594EF1 #AB4EF1 #F14EE6
triadic
#AB4EF1 #F1AB4E #4EF1AB
tetradic
#AB4EF1 #F1594E #94F14E #4EE6F1
square
#AB4EF1 #F1594E #94F14E #4EE6F1
split-complementary
#AB4EF1 #E6F14E #4EF159
monochromatic
#6E0EB6 #9015ED #AB4EF1 #C687F5 #E1BFFA

Accessibility & contrast

On white

4.12
#AB4EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AB4EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EF1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EF1#FFFFFF#000000##000000
##AB4EF11.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF6
Deuteranopia (green-blind)
#207EED
Tritanopia (blue-blind)
#9F729A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab4ef1;
/* rgb */ color: rgb(171, 78, 241);
/* oklch */ color: oklch(61.8% 0.236 306.9);
Tailwind
colors: {
  custom: {
    50: '#c986f7',
    500: '#ab4ef1',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ef1;
$custom-light: #c986f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ef1",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 241
  },
  "hsl": {
    "h": 274.233,
    "s": 85.34,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61791,
    "c": 0.23578,
    "h": 306.9
  },
  "luminance": 0.20458
}

Semantic roles & 50–950 ramp

primary
#AB4EF1
secondary
#C9EBB0
accent
#E20463
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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