#AB62DC#AB62DC

#AB62DC is a light, vivid violet. Relative luminance 0.226; OKLCH L 63.0% C 0.186 H 309.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB62DC
RGBrgb(171, 98, 220)
HSLhsl(276, 64%, 62%)
HSVhsv(276, 55%, 86%)
CMYKcmyk(22.3%, 55.5%, 0%, 13.7%)
CIE-LABlab(54.62, 50.82, -51.07)
CIE-LCHlch(54.62, 72.05, 314.86°)
OKLaboklab(63.03% 0.1191 -0.1434)
OKLCHoklch(63.03% 0.186 309.7)
XYZxyz(34.0781, 22.5612, 70.2558)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB62DC #93DC62
analogous
#6E62DC #AB62DC #DC62D0
triadic
#AB62DC #DCAB62 #62DCAB
tetradic
#AB62DC #DC6E62 #93DC62 #62D0DC
square
#AB62DC #DC6E62 #93DC62 #62D0DC
split-complementary
#AB62DC #D0DC62 #62DC6E
monochromatic
#6E24A0 #9030D1 #AB62DC #C694E7 #E1C6F2

Accessibility & contrast

On white

3.81
#AB62DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AB62DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB62DC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB62DC#FFFFFF#000000##000000
##AB62DC1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7FE0
Deuteranopia (green-blind)
#5584D9
Tritanopia (blue-blind)
#A57896
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab62dc;
/* rgb */ color: rgb(171, 98, 220);
/* oklch */ color: oklch(63.0% 0.186 309.7);
Tailwind
colors: {
  custom: {
    50: '#c791e7',
    500: '#ab62dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab62dc;
$custom-light: #c791e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab62dc",
  "rgb": {
    "r": 171,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 275.902,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63025,
    "c": 0.18638,
    "h": 309.7
  },
  "luminance": 0.22561
}

Semantic roles & 50–950 ramp

primary
#AB62DC
secondary
#C9E3B7
accent
#CB1A61
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #AB62DC

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

Preview Lab → · Contrast checker → · Palette generator →

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