#AB5FDC#AB5FDC

#AB5FDC is a light, vivid violet. Relative luminance 0.220; OKLCH L 62.6% C 0.191 H 310.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AB5FDC
RGBrgb(171, 95, 220)
HSLhsl(276, 64%, 62%)
HSVhsv(276, 57%, 86%)
CMYKcmyk(22.3%, 56.8%, 0%, 13.7%)
CIE-LABlab(54.04, 52.36, -51.99)
CIE-LCHlch(54.04, 73.79, 315.20°)
OKLaboklab(62.6% 0.1229 -0.1461)
OKLCHoklch(62.6% 0.191 310.1)
XYZxyz(33.8026, 22.0103, 70.1640)
Luminance0.2201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FDC #90DC5F
analogous
#6D5FDC #AB5FDC #DC5FCF
triadic
#AB5FDC #DCAB5F #5FDCAB
tetradic
#AB5FDC #DC6D5F #90DC5F #5FCFDC
square
#AB5FDC #DC6D5F #90DC5F #5FCFDC
split-complementary
#AB5FDC #CFDC5F #5FDC6D
monochromatic
#6E239E #902ED0 #AB5FDC #C591E7 #E0C3F2

Accessibility & contrast

On white

3.89
#AB5FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#AB5FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FDC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FDC#FFFFFF#000000##000000
##AB5FDC1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#357EE0
Deuteranopia (green-blind)
#5282D9
Tritanopia (blue-blind)
#A57695
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5fdc;
/* rgb */ color: rgb(171, 95, 220);
/* oklch */ color: oklch(62.6% 0.191 310.1);
Tailwind
colors: {
  custom: {
    50: '#c790e7',
    500: '#ab5fdc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fdc;
$custom-light: #c790e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fdc",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 276.48,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.626,
    "c": 0.19089,
    "h": 310.1
  },
  "luminance": 0.2201
}

Semantic roles & 50–950 ramp

primary
#AB5FDC
secondary
#C6E3B4
accent
#CC1A5F
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #AB5FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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