#AB5EF4#AB5EF4

#AB5EF4 is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.0% C 0.218 H 304.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AB5EF4
RGBrgb(171, 94, 244)
HSLhsl(271, 87%, 66%)
HSVhsv(271, 61%, 96%)
CMYKcmyk(29.9%, 61.5%, 0%, 4.3%)
CIE-LABlab(55.27, 58.28, -63.48)
CIE-LCHlch(55.27, 86.17, 312.55°)
OKLaboklab(63.96% 0.1239 -0.1797)
OKLCHoklch(63.96% 0.218 304.6)
XYZxyz(37.1228, 23.1952, 88.0918)
Luminance0.2319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5EF4 #A7F45E
analogous
#605EF4 #AB5EF4 #F45EF2
triadic
#AB5EF4 #F4AB5E #5EF4AB
tetradic
#AB5EF4 #F4605E #A7F45E #5EF2F4
square
#AB5EF4 #F4605E #A7F45E #5EF2F4
split-complementary
#AB5EF4 #F2F45E #5EF460
monochromatic
#6E0ECA #8D25F0 #AB5EF4 #C997F8 #E7D1FC

Accessibility & contrast

On white

3.72
#AB5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#AB5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5EF4
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5EF4#FFFFFF#000000##000000
##AB5EF41.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F9
Deuteranopia (green-blind)
#3884F1
Tritanopia (blue-blind)
#9E7DA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ab5ef4;
/* rgb */ color: rgb(171, 94, 244);
/* oklch */ color: oklch(64.0% 0.218 304.6);
Tailwind
colors: {
  custom: {
    50: '#c88ff8',
    500: '#ab5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ef4;
$custom-light: #c88ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ef4",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 270.8,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63956,
    "c": 0.21828,
    "h": 304.6
  },
  "luminance": 0.23195
}

Semantic roles & 50–950 ramp

primary
#AB5EF4
secondary
#D6EFBE
accent
#E40270
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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