#AB74F2#AB74F2

#AB74F2 is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.0% C 0.184 H 301.8°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#AB74F2
RGBrgb(171, 116, 242)
HSLhsl(266, 83%, 70%)
HSVhsv(266, 52%, 95%)
CMYKcmyk(29.3%, 52.1%, 0%, 5.1%)
CIE-LABlab(59.49, 46.36, -55.61)
CIE-LCHlch(59.49, 72.40, 309.82°)
OKLaboklab(67.01% 0.0972 -0.1567)
OKLCHoklch(67.01% 0.184 301.8)
XYZxyz(39.0633, 27.5594, 87.2487)
Luminance0.2756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB74F2 #BBF274
analogous
#747CF2 #AB74F2 #EA74F2
triadic
#AB74F2 #F2AB74 #74F2AB
tetradic
#AB74F2 #F2747C #BBF274 #74F2EA
square
#AB74F2 #F2747C #BBF274 #74F2EA
split-complementary
#AB74F2 #F2EA74 #7CF274
monochromatic
#6914D7 #893CED #AB74F2 #CDACF7 #EEE3FC

Accessibility & contrast

On white

3.22
#AB74F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#AB74F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB74F2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB74F2#FFFFFF#000000##000000
##AB74F21.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#488EF6
Deuteranopia (green-blind)
#588FEF
Tritanopia (blue-blind)
#9D8CA8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ab74f2;
/* rgb */ color: rgb(171, 116, 242);
/* oklch */ color: oklch(67.0% 0.184 301.8);
Tailwind
colors: {
  custom: {
    50: '#c79df7',
    500: '#ab74f2',
    950: '#000000',
  },
}
SCSS
$custom: #ab74f2;
$custom-light: #c79df7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab74f2",
  "rgb": {
    "r": 171,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 266.19,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67008,
    "c": 0.1844,
    "h": 301.8
  },
  "luminance": 0.2756
}

Semantic roles & 50–950 ramp

primary
#AB74F2
secondary
#E3F2CF
accent
#DF0681
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB74F2

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

Preview Lab → · Contrast checker → · Palette generator →

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