#AB42E0#AB42E0

#AB42E0 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 59.3% C 0.234 H 311.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AB42E0
RGBrgb(171, 66, 224)
HSLhsl(280, 72%, 57%)
HSVhsv(280, 71%, 88%)
CMYKcmyk(23.7%, 70.5%, 0%, 12.2%)
CIE-LABlab(49.42, 66.56, -61.67)
CIE-LCHlch(49.42, 90.74, 317.18°)
OKLaboklab(59.34% 0.1556 -0.1743)
OKLCHoklch(59.34% 0.234 311.8)
XYZxyz(32.1949, 17.9370, 72.2728)
Luminance0.1794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42E0 #77E042
analogous
#5C42E0 #AB42E0 #E042C6
triadic
#AB42E0 #E0AB42 #42E0AB
tetradic
#AB42E0 #E05C42 #77E042 #42C6E0
square
#AB42E0 #E05C42 #77E042 #42C6E0
split-complementary
#AB42E0 #C6E042 #42E05C
monochromatic
#681890 #8D20C5 #AB42E0 #C277E9 #DAABF1

Accessibility & contrast

On white

4.58
#AB42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AB42E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB42E0
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42E0#FFFFFF#000000##000000
##AB42E01.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E5
Deuteranopia (green-blind)
#2D77DD
Tritanopia (blue-blind)
#A5658D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab42e0;
/* rgb */ color: rgb(171, 66, 224);
/* oklch */ color: oklch(59.3% 0.234 311.8);
Tailwind
colors: {
  custom: {
    50: '#c97fea',
    500: '#ab42e0',
    950: '#000000',
  },
}
SCSS
$custom: #ab42e0;
$custom-light: #c97fea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42e0",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 279.873,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59343,
    "c": 0.23365,
    "h": 311.8
  },
  "luminance": 0.17936
}

Semantic roles & 50–950 ramp

primary
#AB42E0
secondary
#B4DF9F
accent
#EF3976
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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