#AB5CF2#AB5CF2

#AB5CF2 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.219 H 305.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB5CF2
RGBrgb(171, 92, 242)
HSLhsl(272, 85%, 65%)
HSVhsv(272, 62%, 95%)
CMYKcmyk(29.3%, 62%, 0%, 5.1%)
CIE-LABlab(54.79, 58.80, -63.15)
CIE-LCHlch(54.79, 86.28, 312.96°)
OKLaboklab(63.56% 0.1262 -0.1788)
OKLCHoklch(63.56% 0.219 305.2)
XYZxyz(36.6452, 22.7233, 86.4427)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CF2 #A3F25C
analogous
#605CF2 #AB5CF2 #F25CEE
triadic
#AB5CF2 #F2AB5C #5CF2AB
tetradic
#AB5CF2 #F2605C #A3F25C #5CEEF2
square
#AB5CF2 #F2605C #A3F25C #5CEEF2
split-complementary
#AB5CF2 #EEF25C #5CF260
monochromatic
#6F10C4 #8E23ED #AB5CF2 #C895F7 #E5CDFB

Accessibility & contrast

On white

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

On black

5.54
#AB5CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CF2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CF2#FFFFFF#000000##000000
##AB5CF21.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#3883EF
Tritanopia (blue-blind)
#9F7B9F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5cf2;
/* rgb */ color: rgb(171, 92, 242);
/* oklch */ color: oklch(63.6% 0.219 305.2);
Tailwind
colors: {
  custom: {
    50: '#c88ef7',
    500: '#ab5cf2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cf2;
$custom-light: #c88ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cf2",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 242
  },
  "hsl": {
    "h": 271.6,
    "s": 85.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.63563,
    "c": 0.21884,
    "h": 305.2
  },
  "luminance": 0.22723
}

Semantic roles & 50–950 ramp

primary
#AB5CF2
secondary
#D4EEBC
accent
#E2046D
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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