#AB5CE2#AB5CE2

#AB5CE2 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.5% C 0.202 H 308.9°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AB5CE2
RGBrgb(171, 92, 226)
HSLhsl(275, 70%, 62%)
HSVhsv(275, 59%, 89%)
CMYKcmyk(24.3%, 59.3%, 0%, 11.4%)
CIE-LABlab(53.82, 55.20, -55.73)
CIE-LCHlch(53.82, 78.44, 314.72°)
OKLaboklab(62.55% 0.1267 -0.157)
OKLCHoklch(62.55% 0.202 308.9)
XYZxyz(34.3465, 21.8038, 74.3359)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CE2 #93E25C
analogous
#685CE2 #AB5CE2 #E25CD6
triadic
#AB5CE2 #E2AB5C #5CE2AB
tetradic
#AB5CE2 #E2685C #93E25C #5CD6E2
square
#AB5CE2 #E2685C #93E25C #5CD6E2
split-complementary
#AB5CE2 #D6E25C #5CE268
monochromatic
#6E1EA6 #9028D9 #AB5CE2 #C690EB #E1C4F4

Accessibility & contrast

On white

3.92
#AB5CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#AB5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CE2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CE2#FFFFFF#000000##000000
##AB5CE21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#257DE6
Deuteranopia (green-blind)
#4A82DF
Tritanopia (blue-blind)
#A37696
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5ce2;
/* rgb */ color: rgb(171, 92, 226);
/* oklch */ color: oklch(62.5% 0.202 308.9);
Tailwind
colors: {
  custom: {
    50: '#c78eec',
    500: '#ab5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ce2;
$custom-light: #c78eec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ce2",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 275.373,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.6255,
    "c": 0.20174,
    "h": 308.9
  },
  "luminance": 0.21803
}

Semantic roles & 50–950 ramp

primary
#AB5CE2
secondary
#C9E5B4
accent
#D21462
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130D16
muted
#827D84

Preview Lab

Preview with #AB5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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