#AB4AE7#AB4AE7

#AB4AE7 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.7% C 0.231 H 309.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB4AE7
RGBrgb(171, 74, 231)
HSLhsl(277, 77%, 60%)
HSVhsv(277, 68%, 91%)
CMYKcmyk(26%, 68%, 0%, 9.4%)
CIE-LABlab(51.07, 64.69, -62.97)
CIE-LCHlch(51.07, 90.28, 315.77°)
OKLaboklab(60.66% 0.1467 -0.1782)
OKLCHoklch(60.66% 0.231 309.5)
XYZxyz(33.6643, 19.3257, 77.5426)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AE7 #86E74A
analogous
#5D4AE7 #AB4AE7 #E74AD4
triadic
#AB4AE7 #E7AB4A #4AE7AB
tetradic
#AB4AE7 #E75D4A #86E74A #4AD4E7
square
#AB4AE7 #E75D4A #86E74A #4AD4E7
split-complementary
#AB4AE7 #D4E74A #4AE75D
monochromatic
#6C15A1 #901DD7 #AB4AE7 #C480EE #DDB6F5

Accessibility & contrast

On white

4.32
#AB4AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB4AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4AE7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AE7#FFFFFF#000000##000000
##AB4AE71.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#2D7BE4
Tritanopia (blue-blind)
#A26C93
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab4ae7;
/* rgb */ color: rgb(171, 74, 231);
/* oklch */ color: oklch(60.7% 0.231 309.5);
Tailwind
colors: {
  custom: {
    50: '#c984ef',
    500: '#ab4ae7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ae7;
$custom-light: #c984ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ae7",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 231
  },
  "hsl": {
    "h": 277.07,
    "s": 76.585,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60663,
    "c": 0.23082,
    "h": 309.5
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#AB4AE7
secondary
#BFE5A8
accent
#F3357D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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