#AB51E7#AB51E7

#AB51E7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.5% C 0.222 H 308.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB51E7
RGBrgb(171, 81, 231)
HSLhsl(276, 76%, 61%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(26%, 64.9%, 0%, 9.4%)
CIE-LABlab(52.19, 61.57, -61.16)
CIE-LCHlch(52.19, 86.78, 315.19°)
OKLaboklab(61.47% 0.1393 -0.1729)
OKLCHoklch(61.47% 0.222 308.8)
XYZxyz(34.1579, 20.3129, 77.7072)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51E7 #8DE751
analogous
#6051E7 #AB51E7 #E751D8
triadic
#AB51E7 #E7AB51 #51E7AB
tetradic
#AB51E7 #E76051 #8DE751 #51D8E7
square
#AB51E7 #E76051 #8DE751 #51D8E7
split-complementary
#AB51E7 #D8E751 #51E760
monochromatic
#6D17A7 #901EDC #AB51E7 #C587EE #DFBDF6

Accessibility & contrast

On white

4.15
#AB51E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AB51E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51E7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51E7#FFFFFF#000000##000000
##AB51E71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#A27095
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab51e7;
/* rgb */ color: rgb(171, 81, 231);
/* oklch */ color: oklch(61.5% 0.222 308.8);
Tailwind
colors: {
  custom: {
    50: '#c887ef',
    500: '#ab51e7',
    950: '#000000',
  },
}
SCSS
$custom: #ab51e7;
$custom-light: #c887ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51e7",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 276,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61468,
    "c": 0.22199,
    "h": 308.8
  },
  "luminance": 0.20312
}

Semantic roles & 50–950 ramp

primary
#AB51E7
secondary
#C4E6AE
accent
#D80E5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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