#AB40EF#AB40EF

#AB40EF is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 60.2% C 0.250 H 308.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB40EF
RGBrgb(171, 64, 239)
HSLhsl(277, 85%, 59%)
HSVhsv(277, 73%, 94%)
CMYKcmyk(28.5%, 73.2%, 0%, 6.3%)
CIE-LABlab(50.17, 70.45, -68.93)
CIE-LCHlch(50.17, 98.57, 315.62°)
OKLaboklab(60.19% 0.1552 -0.1956)
OKLCHoklch(60.19% 0.25 308.4)
XYZxyz(34.2047, 18.5573, 83.4246)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40EF #84EF40
analogous
#5440EF #AB40EF #EF40DB
triadic
#AB40EF #EFAB40 #40EFAB
tetradic
#AB40EF #EF5440 #84EF40 #40DBEF
square
#AB40EF #EF5440 #84EF40 #40DBEF
split-complementary
#AB40EF #DBEF40 #40EF54
monochromatic
#6B0EA7 #9013DF #AB40EF #C478F4 #DDB1F8

Accessibility & contrast

On white

4.46
#AB40EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AB40EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB40EF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40EF#FFFFFF#000000##000000
##AB40EF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0078EB
Tritanopia (blue-blind)
#A06A95
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab40ef;
/* rgb */ color: rgb(171, 64, 239);
/* oklch */ color: oklch(60.2% 0.250 308.4);
Tailwind
colors: {
  custom: {
    50: '#ca7ff5',
    500: '#ab40ef',
    950: '#000000',
  },
}
SCSS
$custom: #ab40ef;
$custom-light: #ca7ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40ef",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 239
  },
  "hsl": {
    "h": 276.686,
    "s": 84.541,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60194,
    "c": 0.24973,
    "h": 308.4
  },
  "luminance": 0.18557
}

Semantic roles & 50–950 ramp

primary
#AB40EF
secondary
#BEE7A3
accent
#FB2D7D
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #AB40EF

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

Preview Lab → · Contrast checker → · Palette generator →

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