#AB7EFC#AB7EFC

#AB7EFC is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.2% C 0.182 H 298.0°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#AB7EFC
RGBrgb(171, 126, 252)
HSLhsl(261, 95%, 74%)
HSVhsv(261, 50%, 99%)
CMYKcmyk(32.1%, 50%, 0%, 1.2%)
CIE-LABlab(62.17, 43.34, -56.85)
CIE-LCHlch(62.17, 71.48, 307.32°)
OKLaboklab(69.18% 0.0852 -0.1604)
OKLCHoklch(69.18% 0.182 298)
XYZxyz(41.8218, 30.6074, 95.7810)
Luminance0.3061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EFC #CFFC7E
analogous
#7E90FC #AB7EFC #EA7EFC
triadic
#AB7EFC #FCAB7E #7EFCAB
tetradic
#AB7EFC #FC7E90 #CFFC7E #7EFCEA
square
#AB7EFC #FC7E90 #CFFC7E #7EFCEA
split-complementary
#AB7EFC #FCEA7E #90FC7E
monochromatic
#5D06F9 #8442FB #AB7EFC #D2BAFD #ECE1FE

Accessibility & contrast

On white

2.95
#AB7EFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#AB7EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EFC
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EFC#FFFFFF#000000##000000
##AB7EFC1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5197FF
Deuteranopia (green-blind)
#5C95F9
Tritanopia (blue-blind)
#9A96B1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7efc;
/* rgb */ color: rgb(171, 126, 252);
/* oklch */ color: oklch(69.2% 0.182 298.0);
Tailwind
colors: {
  custom: {
    50: '#c7a4fe',
    500: '#ab7efc',
    950: '#000000',
  },
}
SCSS
$custom: #ab7efc;
$custom-light: #c7a4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7efc",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 261.429,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.69178,
    "c": 0.18158,
    "h": 298
  },
  "luminance": 0.30608
}

Semantic roles & 50–950 ramp

primary
#AB7EFC
secondary
#EAF7D4
accent
#E60094
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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