#AB5CFA#AB5CFA

#AB5CFA is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.1% C 0.227 H 303.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AB5CFA
RGBrgb(171, 92, 250)
HSLhsl(270, 94%, 67%)
HSVhsv(270, 63%, 98%)
CMYKcmyk(31.6%, 63.2%, 0%, 2%)
CIE-LABlab(55.29, 60.64, -66.78)
CIE-LCHlch(55.29, 90.20, 312.24°)
OKLaboklab(64.09% 0.1258 -0.1894)
OKLCHoklch(64.09% 0.227 303.6)
XYZxyz(37.8731, 23.2144, 92.9095)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CFA #ABFA5C
analogous
#5C5CFA #AB5CFA #FA5CFA
triadic
#AB5CFA #FAAB5C #5CFAAB
tetradic
#AB5CFA #FA5C5C #ABFA5C #5CFAFA
square
#AB5CFA #FA5C5C #ABFA5C #5CFAFA
split-complementary
#AB5CFA #FAFA5C #5CFA5C
monochromatic
#6E07D5 #8C21F8 #AB5CFA #CA97FC #E8D3FE

Accessibility & contrast

On white

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

On black

5.64
#AB5CFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CFA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CFA#FFFFFF#000000##000000
##AB5CFA1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#2B84F7
Tritanopia (blue-blind)
#9C7EA3
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ab5cfa;
/* rgb */ color: rgb(171, 92, 250);
/* oklch */ color: oklch(64.1% 0.227 303.6);
Tailwind
colors: {
  custom: {
    50: '#c98efd',
    500: '#ab5cfa',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cfa;
$custom-light: #c98efd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cfa",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 250
  },
  "hsl": {
    "h": 270,
    "s": 94.048,
    "l": 67.059
  },
  "oklch": {
    "l": 0.64091,
    "c": 0.22738,
    "h": 303.6
  },
  "luminance": 0.23214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB5CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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