#AB4CFA#AB4CFA

#AB4CFA is a light, highly saturated violet. Relative luminance 0.207; OKLCH L 62.2% C 0.247 H 305.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB4CFA
RGBrgb(171, 76, 250)
HSLhsl(273, 95%, 64%)
HSVhsv(273, 70%, 98%)
CMYKcmyk(31.6%, 69.6%, 0%, 2%)
CIE-LABlab(52.65, 67.95, -71.05)
CIE-LCHlch(52.65, 98.31, 313.72°)
OKLaboklab(62.2% 0.1423 -0.2019)
OKLCHoklch(62.2% 0.247 305.2)
XYZxyz(36.6305, 20.7292, 92.4953)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CFA #9BFA4C
analogous
#544CFA #AB4CFA #FA4CF2
triadic
#AB4CFA #FAAB4C #4CFAAB
tetradic
#AB4CFA #FA544C #9BFA4C #4CF2FA
square
#AB4CFA #FA544C #9BFA4C #4CF2FA
split-complementary
#AB4CFA #F2FA4C #4CFA54
monochromatic
#6F06C6 #8F10F8 #AB4CFA #C788FC #E3C3FD

Accessibility & contrast

On white

4.08
#AB4CFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AB4CFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CFA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CFA#FFFFFF#000000##000000
##AB4CFA1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#007EF6
Tritanopia (blue-blind)
#9D759E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab4cfa;
/* rgb */ color: rgb(171, 76, 250);
/* oklch */ color: oklch(62.2% 0.247 305.2);
Tailwind
colors: {
  custom: {
    50: '#ca85fd',
    500: '#ab4cfa',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cfa;
$custom-light: #ca85fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cfa",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 250
  },
  "hsl": {
    "h": 272.759,
    "s": 94.565,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62198,
    "c": 0.24703,
    "h": 305.2
  },
  "luminance": 0.20729
}

Semantic roles & 50–950 ramp

primary
#AB4CFA
secondary
#CEEFB2
accent
#E60068
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AB4CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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