#AB7EF2#AB7EF2

#AB7EF2 is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.6% C 0.169 H 299.9°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#AB7EF2
RGBrgb(171, 126, 242)
HSLhsl(263, 82%, 72%)
HSVhsv(263, 48%, 95%)
CMYKcmyk(29.3%, 47.9%, 0%, 5.1%)
CIE-LABlab(61.65, 40.88, -52.18)
CIE-LCHlch(61.65, 66.29, 308.08°)
OKLaboklab(68.61% 0.0843 -0.1467)
OKLCHoklch(68.61% 0.169 299.9)
XYZxyz(40.2787, 29.9902, 87.6538)
Luminance0.2999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EF2 #C5F27E
analogous
#7E8BF2 #AB7EF2 #E57EF2
triadic
#AB7EF2 #F2AB7E #7EF2AB
tetradic
#AB7EF2 #F27E8B #C5F27E #7EF2E5
square
#AB7EF2 #F27E8B #C5F27E #7EF2E5
split-complementary
#AB7EF2 #F2E57E #8BF27E
monochromatic
#6416DF #8746EC #AB7EF2 #CFB6F8 #EDE3FC

Accessibility & contrast

On white

3.00
#AB7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#AB7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EF2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EF2#FFFFFF#000000##000000
##AB7EF21.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#9D93AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7ef2;
/* rgb */ color: rgb(171, 126, 242);
/* oklch */ color: oklch(68.6% 0.169 299.9);
Tailwind
colors: {
  custom: {
    50: '#c7a4f7',
    500: '#ab7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ef2;
$custom-light: #c7a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ef2",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 263.276,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68612,
    "c": 0.16918,
    "h": 299.9
  },
  "luminance": 0.2999
}

Semantic roles & 50–950 ramp

primary
#AB7EF2
secondary
#E9F4D7
accent
#DE078B
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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