#AB4EE7#AB4EE7

#AB4EE7 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.1% C 0.226 H 309.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AB4EE7
RGBrgb(171, 78, 231)
HSLhsl(276, 76%, 61%)
HSVhsv(276, 66%, 91%)
CMYKcmyk(26%, 66.2%, 0%, 9.4%)
CIE-LABlab(51.70, 62.93, -61.95)
CIE-LCHlch(51.70, 88.31, 315.45°)
OKLaboklab(61.11% 0.1425 -0.1752)
OKLCHoklch(61.11% 0.226 309.1)
XYZxyz(33.9399, 19.8768, 77.6345)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EE7 #8AE74E
analogous
#5F4EE7 #AB4EE7 #E74ED6
triadic
#AB4EE7 #E7AB4E #4EE7AB
tetradic
#AB4EE7 #E75F4E #8AE74E #4ED6E7
square
#AB4EE7 #E75F4E #8AE74E #4ED6E7
split-complementary
#AB4EE7 #D6E74E #4EE75F
monochromatic
#6D16A4 #901EDA #AB4EE7 #C584EE #DEBAF6

Accessibility & contrast

On white

4.22
#AB4EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AB4EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EE7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EE7#FFFFFF#000000##000000
##AB4EE71.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#337CE4
Tritanopia (blue-blind)
#A26E94
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ee7;
/* rgb */ color: rgb(171, 78, 231);
/* oklch */ color: oklch(61.1% 0.226 309.1);
Tailwind
colors: {
  custom: {
    50: '#c886ef',
    500: '#ab4ee7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ee7;
$custom-light: #c886ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ee7",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 231
  },
  "hsl": {
    "h": 276.471,
    "s": 76.119,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61115,
    "c": 0.22585,
    "h": 309.1
  },
  "luminance": 0.19876
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB4EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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