#AB74DC#AB74DC

#AB74DC is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.8% C 0.158 H 307.0°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB74DC
RGBrgb(171, 116, 220)
HSLhsl(272, 60%, 66%)
HSVhsv(272, 47%, 86%)
CMYKcmyk(22.3%, 47.3%, 0%, 13.7%)
CIE-LABlab(58.34, 41.20, -45.17)
CIE-LCHlch(58.34, 61.14, 312.37°)
OKLaboklab(65.78% 0.0951 -0.1263)
OKLCHoklch(65.78% 0.158 307)
XYZxyz(35.9557, 26.3164, 70.8817)
Luminance0.2632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB74DC #A5DC74
analogous
#7774DC #AB74DC #DC74D9
triadic
#AB74DC #DCAB74 #74DCAB
tetradic
#AB74DC #DC7774 #A5DC74 #74D9DC
square
#AB74DC #DC7774 #A5DC74 #74D9DC
split-complementary
#AB74DC #D9DC74 #74DC77
monochromatic
#6E2BAB #8D43D0 #AB74DC #C9A5E8 #E6D6F5

Accessibility & contrast

On white

3.35
#AB74DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#AB74DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB74DC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB74DC#FFFFFF#000000##000000
##AB74DC1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#598AE0
Deuteranopia (green-blind)
#678DD9
Tritanopia (blue-blind)
#A4859E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ab74dc;
/* rgb */ color: rgb(171, 116, 220);
/* oklch */ color: oklch(65.8% 0.158 307.0);
Tailwind
colors: {
  custom: {
    50: '#c69de7',
    500: '#ab74dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab74dc;
$custom-light: #c69de7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab74dc",
  "rgb": {
    "r": 171,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 271.731,
    "s": 59.77,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65777,
    "c": 0.15806,
    "h": 307
  },
  "luminance": 0.26316
}

Semantic roles & 50–950 ramp

primary
#AB74DC
secondary
#D5E7C5
accent
#C71E6E
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AB74DC

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

Preview Lab → · Contrast checker → · Palette generator →

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