#AB5CF5#AB5CF5

#AB5CF5 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.8% C 0.222 H 304.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AB5CF5
RGBrgb(171, 92, 245)
HSLhsl(271, 88%, 66%)
HSVhsv(271, 62%, 96%)
CMYKcmyk(30.2%, 62.4%, 0%, 3.9%)
CIE-LABlab(54.97, 59.49, -64.51)
CIE-LCHlch(54.97, 87.75, 312.68°)
OKLaboklab(63.76% 0.1261 -0.1828)
OKLCHoklch(63.76% 0.222 304.6)
XYZxyz(37.0995, 22.9050, 88.8351)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CF5 #A6F55C
analogous
#5E5CF5 #AB5CF5 #F55CF3
triadic
#AB5CF5 #F5AB5C #5CF5AB
tetradic
#AB5CF5 #F55E5C #A6F55C #5CF3F5
square
#AB5CF5 #F55E5C #A6F55C #5CF3F5
split-complementary
#AB5CF5 #F3F55C #5CF55E
monochromatic
#6E0CCA #8D22F1 #AB5CF5 #C996F9 #E6CFFC

Accessibility & contrast

On white

3.76
#AB5CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#AB5CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CF5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CF5#FFFFFF#000000##000000
##AB5CF51.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FA
Deuteranopia (green-blind)
#3384F2
Tritanopia (blue-blind)
#9E7CA0
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ab5cf5;
/* rgb */ color: rgb(171, 92, 245);
/* oklch */ color: oklch(63.8% 0.222 304.6);
Tailwind
colors: {
  custom: {
    50: '#c98ef9',
    500: '#ab5cf5',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cf5;
$custom-light: #c98ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cf5",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 270.98,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6376,
    "c": 0.22204,
    "h": 304.6
  },
  "luminance": 0.22905
}

Semantic roles & 50–950 ramp

primary
#AB5CF5
secondary
#D6F0BD
accent
#E5006F
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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