#AB7FEB#AB7FEB

#AB7FEB is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.4% C 0.159 H 301.1°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AB7FEB
RGBrgb(171, 127, 235)
HSLhsl(264, 73%, 71%)
HSVhsv(264, 46%, 92%)
CMYKcmyk(27.2%, 46%, 0%, 7.8%)
CIE-LABlab(61.51, 38.64, -48.52)
CIE-LCHlch(61.51, 62.02, 308.53°)
OKLaboklab(68.4% 0.0821 -0.136)
OKLCHoklch(68.4% 0.159 301.1)
XYZxyz(39.3760, 29.8347, 82.2654)
Luminance0.2984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FEB #BFEB7F
analogous
#7F89EB #AB7FEB #E17FEB
triadic
#AB7FEB #EBAB7F #7FEBAB
tetradic
#AB7FEB #EB7F89 #BFEB7F #7FEBE1
square
#AB7FEB #EB7F89 #BFEB7F #7FEBE1
split-complementary
#AB7FEB #EBE17F #89EB7F
monochromatic
#6820CF #884AE3 #AB7FEB #CEB4F3 #EEE5FB

Accessibility & contrast

On white

3.01
#AB7FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AB7FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7FEB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FEB#FFFFFF#000000##000000
##AB7FEB1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F94EF
Deuteranopia (green-blind)
#6A94E8
Tritanopia (blue-blind)
#9F92AA
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7feb;
/* rgb */ color: rgb(171, 127, 235);
/* oklch */ color: oklch(68.4% 0.159 301.1);
Tailwind
colors: {
  custom: {
    50: '#c6a5f2',
    500: '#ab7feb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7feb;
$custom-light: #c6a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7feb",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 264.444,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68396,
    "c": 0.15888,
    "h": 301.1
  },
  "luminance": 0.29835
}

Semantic roles & 50–950 ramp

primary
#AB7FEB
secondary
#E6F1D5
accent
#D51085
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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