#AB4AEF#AB4AEF

#AB4AEF is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.2% C 0.239 H 307.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB4AEF
RGBrgb(171, 74, 239)
HSLhsl(275, 84%, 61%)
HSVhsv(275, 69%, 94%)
CMYKcmyk(28.5%, 69%, 0%, 6.3%)
CIE-LABlab(51.60, 66.40, -66.61)
CIE-LCHlch(51.60, 94.06, 314.91°)
OKLaboklab(61.21% 0.1458 -0.1889)
OKLCHoklch(61.21% 0.239 307.7)
XYZxyz(34.8201, 19.7880, 83.6297)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AEF #8EEF4A
analogous
#594AEF #AB4AEF #EF4AE0
triadic
#AB4AEF #EFAB4A #4AEFAB
tetradic
#AB4AEF #EF594A #8EEF4A #4AE0EF
square
#AB4AEF #EF594A #8EEF4A #4AE0EF
split-complementary
#AB4AEF #E0EF4A #4AEF59
monochromatic
#6D0FAF #9014E7 #AB4AEF #C582F4 #DFBAF9

Accessibility & contrast

On white

4.24
#AB4AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AB4AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4AEF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AEF#FFFFFF#000000##000000
##AB4AEF1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#1C7CEB
Tritanopia (blue-blind)
#A06F97
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4aef;
/* rgb */ color: rgb(171, 74, 239);
/* oklch */ color: oklch(61.2% 0.239 307.7);
Tailwind
colors: {
  custom: {
    50: '#c984f5',
    500: '#ab4aef',
    950: '#000000',
  },
}
SCSS
$custom: #ab4aef;
$custom-light: #c984f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4aef",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 239
  },
  "hsl": {
    "h": 275.273,
    "s": 83.756,
    "l": 61.373
  },
  "oklch": {
    "l": 0.6121,
    "c": 0.2386,
    "h": 307.7
  },
  "luminance": 0.19787
}

Semantic roles & 50–950 ramp

primary
#AB4AEF
secondary
#C5E9AC
accent
#E00560
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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