#AB7DEF#AB7DEF

#AB7DEF is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.3% C 0.167 H 300.7°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#AB7DEF
RGBrgb(171, 125, 239)
HSLhsl(264, 78%, 71%)
HSVhsv(264, 48%, 94%)
CMYKcmyk(28.5%, 47.7%, 0%, 6.3%)
CIE-LABlab(61.27, 40.71, -51.12)
CIE-LCHlch(61.27, 65.35, 308.53°)
OKLaboklab(68.28% 0.0852 -0.1436)
OKLCHoklch(68.28% 0.167 300.7)
XYZxyz(39.7046, 29.5570, 85.2579)
Luminance0.2956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DEF #C1EF7D
analogous
#7D88EF #AB7DEF #E47DEF
triadic
#AB7DEF #EFAB7D #7DEFAB
tetradic
#AB7DEF #EF7D88 #C1EF7D #7DEFE4
square
#AB7DEF #EF7D88 #C1EF7D #7DEFE4
split-complementary
#AB7DEF #EFE47D #88EF7D
monochromatic
#671AD7 #8847E8 #AB7DEF #CEB3F6 #EDE4FC

Accessibility & contrast

On white

3.04
#AB7DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#AB7DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7DEF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DEF#FFFFFF#000000##000000
##AB7DEF1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5993F3
Deuteranopia (green-blind)
#6593EC
Tritanopia (blue-blind)
#9E92AB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7def;
/* rgb */ color: rgb(171, 125, 239);
/* oklch */ color: oklch(68.3% 0.167 300.7);
Tailwind
colors: {
  custom: {
    50: '#c7a3f5',
    500: '#ab7def',
    950: '#000000',
  },
}
SCSS
$custom: #ab7def;
$custom-light: #c7a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7def",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 264.211,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68281,
    "c": 0.167,
    "h": 300.7
  },
  "luminance": 0.29557
}

Semantic roles & 50–950 ramp

primary
#AB7DEF
secondary
#E7F3D5
accent
#DA0B87
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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