#AB7EFB#AB7EFB

#AB7EFB is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.1% C 0.180 H 298.2°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#AB7EFB
RGBrgb(171, 126, 251)
HSLhsl(262, 94%, 74%)
HSVhsv(262, 50%, 98%)
CMYKcmyk(31.9%, 49.8%, 0%, 1.6%)
CIE-LABlab(62.12, 43.09, -56.38)
CIE-LCHlch(62.12, 70.97, 307.39°)
OKLaboklab(69.12% 0.0851 -0.159)
OKLCHoklch(69.12% 0.18 298.2)
XYZxyz(41.6638, 30.5442, 94.9487)
Luminance0.3054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EFB #CEFB7E
analogous
#7E90FB #AB7EFB #EA7EFB
triadic
#AB7EFB #FBAB7E #7EFBAB
tetradic
#AB7EFB #FB7E90 #CEFB7E #7EFBEA
square
#AB7EFB #FB7E90 #CEFB7E #7EFBEA
split-complementary
#AB7EFB #FBEA7E #90FB7E
monochromatic
#5E08F7 #8443F9 #AB7EFB #D2B9FD #ECE1FE

Accessibility & contrast

On white

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

On black

7.11
#AB7EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EFB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EFB#FFFFFF#000000##000000
##AB7EFB1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab7efb;
/* rgb */ color: rgb(171, 126, 251);
/* oklch */ color: oklch(69.1% 0.180 298.2);
Tailwind
colors: {
  custom: {
    50: '#c7a4fd',
    500: '#ab7efb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7efb;
$custom-light: #c7a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7efb",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 261.6,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69121,
    "c": 0.18034,
    "h": 298.2
  },
  "luminance": 0.30545
}

Semantic roles & 50–950 ramp

primary
#AB7EFB
secondary
#EAF6D5
accent
#E60093
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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