#AB40E1#AB40E1

#AB40E1 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 59.2% C 0.237 H 311.7°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AB40E1
RGBrgb(171, 64, 225)
HSLhsl(280, 73%, 57%)
HSVhsv(280, 72%, 88%)
CMYKcmyk(24%, 71.6%, 0%, 11.8%)
CIE-LABlab(49.21, 67.56, -62.58)
CIE-LCHlch(49.21, 92.09, 317.19°)
OKLaboklab(59.21% 0.1574 -0.177)
OKLCHoklch(59.21% 0.237 311.7)
XYZxyz(32.2161, 17.7618, 72.9509)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40E1 #76E140
analogous
#5B40E1 #AB40E1 #E140C7
triadic
#AB40E1 #E1AB40 #40E1AB
tetradic
#AB40E1 #E15B40 #76E140 #40C7E1
square
#AB40E1 #E15B40 #76E140 #40C7E1
split-complementary
#AB40E1 #C7E140 #40E15B
monochromatic
#671790 #8D1FC5 #AB40E1 #C275E9 #DAAAF2

Accessibility & contrast

On white

4.61
#AB40E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AB40E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40E1
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40E1#FFFFFF#000000##FFFFFF
##AB40E11.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#2977DE
Tritanopia (blue-blind)
#A4648D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab40e1;
/* rgb */ color: rgb(171, 64, 225);
/* oklch */ color: oklch(59.2% 0.237 311.7);
Tailwind
colors: {
  custom: {
    50: '#c97eeb',
    500: '#ab40e1',
    950: '#000000',
  },
}
SCSS
$custom: #ab40e1;
$custom-light: #c97eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40e1",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 279.876,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59212,
    "c": 0.23685,
    "h": 311.7
  },
  "luminance": 0.17761
}

Semantic roles & 50–950 ramp

primary
#AB40E1
secondary
#B4DF9D
accent
#F03876
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB40E1

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

Preview Lab → · Contrast checker → · Palette generator →

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