#AB5DF9#AB5DF9

#AB5DF9 is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.2% C 0.225 H 303.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AB5DF9
RGBrgb(171, 93, 249)
HSLhsl(270, 93%, 67%)
HSVhsv(270, 63%, 98%)
CMYKcmyk(31.3%, 62.7%, 0%, 2.4%)
CIE-LABlab(55.41, 59.92, -66.04)
CIE-LCHlch(55.41, 89.17, 312.22°)
OKLaboklab(64.15% 0.1247 -0.1873)
OKLCHoklch(64.15% 0.225 303.7)
XYZxyz(37.8039, 23.3263, 92.1150)
Luminance0.2333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DF9 #ABF95D
analogous
#5D5DF9 #AB5DF9 #F95DF9
triadic
#AB5DF9 #F9AB5D #5DF9AB
tetradic
#AB5DF9 #F95D5D #ABF95D #5DF9F9
square
#AB5DF9 #F95D5D #ABF95D #5DF9F9
split-complementary
#AB5DF9 #F9F95D #5DF95D
monochromatic
#6E08D4 #8C22F7 #AB5DF9 #CA98FB #E8D3FD

Accessibility & contrast

On white

3.71
#AB5DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#AB5DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DF9
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DF9#FFFFFF#000000##000000
##AB5DF91.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FE
Deuteranopia (green-blind)
#2E84F6
Tritanopia (blue-blind)
#9C7EA3
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ab5df9;
/* rgb */ color: rgb(171, 93, 249);
/* oklch */ color: oklch(64.2% 0.225 303.7);
Tailwind
colors: {
  custom: {
    50: '#c98ffc',
    500: '#ab5df9',
    950: '#000000',
  },
}
SCSS
$custom: #ab5df9;
$custom-light: #c98ffc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5df9",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 249
  },
  "hsl": {
    "h": 270,
    "s": 92.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.64153,
    "c": 0.22499,
    "h": 303.7
  },
  "luminance": 0.23326
}

Semantic roles & 50–950 ramp

primary
#AB5DF9
secondary
#D9F2C0
accent
#E60073
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D18
muted
#827E86

Preview Lab

Preview with #AB5DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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