#AB7EF4#AB7EF4

#AB7EF4 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.172 H 299.5°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AB7EF4
RGBrgb(171, 126, 244)
HSLhsl(263, 84%, 73%)
HSVhsv(263, 48%, 96%)
CMYKcmyk(29.9%, 48.4%, 0%, 4.3%)
CIE-LABlab(61.75, 41.37, -53.12)
CIE-LCHlch(61.75, 67.33, 307.91°)
OKLaboklab(68.72% 0.0845 -0.1494)
OKLCHoklch(68.72% 0.172 299.5)
XYZxyz(40.5807, 30.1110, 89.2445)
Luminance0.3011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EF4 #C7F47E
analogous
#7E8CF4 #AB7EF4 #E67EF4
triadic
#AB7EF4 #F4AB7E #7EF4AB
tetradic
#AB7EF4 #F47E8C #C7F47E #7EF4E6
square
#AB7EF4 #F47E8C #C7F47E #7EF4E6
split-complementary
#AB7EF4 #F4E67E #8CF47E
monochromatic
#6313E4 #8646EF #AB7EF4 #D0B6F9 #EDE3FD

Accessibility & contrast

On white

2.99
#AB7EF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#AB7EF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EF4
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EF4#FFFFFF#000000##000000
##AB7EF41.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5795F8
Deuteranopia (green-blind)
#6294F1
Tritanopia (blue-blind)
#9C94AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7ef4;
/* rgb */ color: rgb(171, 126, 244);
/* oklch */ color: oklch(68.7% 0.172 299.5);
Tailwind
colors: {
  custom: {
    50: '#c7a4f8',
    500: '#ab7ef4',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ef4;
$custom-light: #c7a4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ef4",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 262.881,
    "s": 84.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68724,
    "c": 0.17166,
    "h": 299.5
  },
  "luminance": 0.30111
}

Semantic roles & 50–950 ramp

primary
#AB7EF4
secondary
#E9F5D6
accent
#E1058D
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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