#AB74EC#AB74EC

#AB74EC is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.7% C 0.177 H 303.1°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AB74EC
RGBrgb(171, 116, 236)
HSLhsl(268, 76%, 69%)
HSVhsv(268, 51%, 93%)
CMYKcmyk(27.5%, 50.8%, 0%, 7.5%)
CIE-LABlab(59.16, 44.93, -52.80)
CIE-LCHlch(59.16, 69.33, 310.40°)
OKLaboklab(66.66% 0.0967 -0.1485)
OKLCHoklch(66.66% 0.177 303.1)
XYZxyz(38.1769, 27.2049, 82.5804)
Luminance0.2721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB74EC #B5EC74
analogous
#7479EC #AB74EC #E774EC
triadic
#AB74EC #ECAB74 #74ECAB
tetradic
#AB74EC #EC7479 #B5EC74 #74ECE7
square
#AB74EC #EC7479 #B5EC74 #74ECE7
split-complementary
#AB74EC #ECE774 #79EC74
monochromatic
#6C1CCA #8A3EE5 #AB74EC #CCAAF3 #ECE0FB

Accessibility & contrast

On white

3.26
#AB74EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#AB74EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB74EC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB74EC#FFFFFF#000000##000000
##AB74EC1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DF0
Deuteranopia (green-blind)
#5D8EE9
Tritanopia (blue-blind)
#9F8AA5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab74ec;
/* rgb */ color: rgb(171, 116, 236);
/* oklch */ color: oklch(66.7% 0.177 303.1);
Tailwind
colors: {
  custom: {
    50: '#c79df3',
    500: '#ab74ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab74ec;
$custom-light: #c79df3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab74ec",
  "rgb": {
    "r": 171,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 267.5,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66662,
    "c": 0.17723,
    "h": 303.1
  },
  "luminance": 0.27205
}

Semantic roles & 50–950 ramp

primary
#AB74EC
secondary
#DFEFCC
accent
#D80D7B
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB74EC

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

Preview Lab → · Contrast checker → · Palette generator →

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