#AB4FE7#AB4FE7

#AB4FE7 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.2% C 0.225 H 309.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB4FE7
RGBrgb(171, 79, 231)
HSLhsl(276, 76%, 61%)
HSVhsv(276, 66%, 91%)
CMYKcmyk(26%, 65.8%, 0%, 9.4%)
CIE-LABlab(51.86, 62.48, -61.69)
CIE-LCHlch(51.86, 87.80, 315.36°)
OKLaboklab(61.23% 0.1414 -0.1744)
OKLCHoklch(61.23% 0.225 309)
XYZxyz(34.0115, 20.0200, 77.6583)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FE7 #8BE74F
analogous
#5F4FE7 #AB4FE7 #E74FD7
triadic
#AB4FE7 #E7AB4F #4FE7AB
tetradic
#AB4FE7 #E75F4F #8BE74F #4FD7E7
square
#AB4FE7 #E75F4F #8BE74F #4FD7E7
split-complementary
#AB4FE7 #D7E74F #4FE75F
monochromatic
#6D17A5 #901EDB #AB4FE7 #C585EE #DEBBF6

Accessibility & contrast

On white

4.20
#AB4FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AB4FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FE7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FE7#FFFFFF#000000##000000
##AB4FE71.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#347DE4
Tritanopia (blue-blind)
#A26F95
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab4fe7;
/* rgb */ color: rgb(171, 79, 231);
/* oklch */ color: oklch(61.2% 0.225 309.0);
Tailwind
colors: {
  custom: {
    50: '#c886ef',
    500: '#ab4fe7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fe7;
$custom-light: #c886ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fe7",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 231
  },
  "hsl": {
    "h": 276.316,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61232,
    "c": 0.22458,
    "h": 309
  },
  "luminance": 0.20019
}

Semantic roles & 50–950 ramp

primary
#AB4FE7
secondary
#C3E6AC
accent
#D80D5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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