#AB5FE8#AB5FE8

#AB5FE8 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.3% C 0.204 H 307.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AB5FE8
RGBrgb(171, 95, 232)
HSLhsl(273, 75%, 64%)
HSVhsv(273, 59%, 91%)
CMYKcmyk(26.3%, 59.1%, 0%, 9%)
CIE-LABlab(54.73, 55.04, -57.64)
CIE-LCHlch(54.73, 79.70, 313.68°)
OKLaboklab(63.33% 0.123 -0.1626)
OKLCHoklch(63.33% 0.204 307.1)
XYZxyz(35.4493, 22.6689, 78.8363)
Luminance0.2267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FE8 #9CE85F
analogous
#675FE8 #AB5FE8 #E85FE0
triadic
#AB5FE8 #E8AB5F #5FE8AB
tetradic
#AB5FE8 #E8675F #9CE85F #5FE0E8
square
#AB5FE8 #E8675F #9CE85F #5FE0E8
split-complementary
#AB5FE8 #E0E85F #5FE867
monochromatic
#6F1AB3 #8F29E0 #AB5FE8 #C795F0 #E3CAF7

Accessibility & contrast

On white

3.79
#AB5FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#AB5FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FE8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FE8#FFFFFF#000000##000000
##AB5FE81.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2380EC
Deuteranopia (green-blind)
#4884E5
Tritanopia (blue-blind)
#A17A9B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5fe8;
/* rgb */ color: rgb(171, 95, 232);
/* oklch */ color: oklch(63.3% 0.204 307.1);
Tailwind
colors: {
  custom: {
    50: '#c890f0',
    500: '#ab5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fe8;
$custom-light: #c890f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fe8",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 273.285,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63328,
    "c": 0.20391,
    "h": 307.1
  },
  "luminance": 0.22669
}

Semantic roles & 50–950 ramp

primary
#AB5FE8
secondary
#CFE9BA
accent
#D70E68
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AB5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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