#AB5EF5#AB5EF5

#AB5EF5 is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.0% C 0.219 H 304.4°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AB5EF5
RGBrgb(171, 94, 245)
HSLhsl(271, 88%, 66%)
HSVhsv(271, 62%, 96%)
CMYKcmyk(30.2%, 61.6%, 0%, 3.9%)
CIE-LABlab(55.34, 58.51, -63.93)
CIE-LCHlch(55.34, 86.66, 312.46°)
OKLaboklab(64.02% 0.1238 -0.1811)
OKLCHoklch(64.02% 0.219 304.4)
XYZxyz(37.2750, 23.2561, 88.8936)
Luminance0.2326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5EF5 #A8F55E
analogous
#605EF5 #AB5EF5 #F55EF4
triadic
#AB5EF5 #F5AB5E #5EF5AB
tetradic
#AB5EF5 #F5605E #A8F55E #5EF4F5
square
#AB5EF5 #F5605E #A8F55E #5EF4F5
split-complementary
#AB5EF5 #F4F55E #5EF560
monochromatic
#6E0DCC #8D24F1 #AB5EF5 #C998F9 #E7D1FC

Accessibility & contrast

On white

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

On black

5.65
#AB5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5EF5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5EF5#FFFFFF#000000##000000
##AB5EF51.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#3784F2
Tritanopia (blue-blind)
#9D7EA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ab5ef5;
/* rgb */ color: rgb(171, 94, 245);
/* oklch */ color: oklch(64.0% 0.219 304.4);
Tailwind
colors: {
  custom: {
    50: '#c88ff9',
    500: '#ab5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ef5;
$custom-light: #c88ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ef5",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 270.596,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64021,
    "c": 0.21936,
    "h": 304.4
  },
  "luminance": 0.23256
}

Semantic roles & 50–950 ramp

primary
#AB5EF5
secondary
#D7F0BF
accent
#E50170
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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