#AB5CE7#AB5CE7

#AB5CE7 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 62.9% C 0.207 H 307.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AB5CE7
RGBrgb(171, 92, 231)
HSLhsl(274, 74%, 63%)
HSVhsv(274, 60%, 91%)
CMYKcmyk(26%, 60.2%, 0%, 9.4%)
CIE-LABlab(54.11, 56.31, -58.07)
CIE-LCHlch(54.11, 80.89, 314.12°)
OKLaboklab(62.86% 0.1266 -0.1639)
OKLCHoklch(62.86% 0.207 307.7)
XYZxyz(35.0426, 22.0822, 78.0020)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CE7 #98E75C
analogous
#655CE7 #AB5CE7 #E75CDD
triadic
#AB5CE7 #E7AB5C #5CE7AB
tetradic
#AB5CE7 #E7655C #98E75C #5CDDE7
square
#AB5CE7 #E7655C #98E75C #5CDDE7
split-complementary
#AB5CE7 #DDE75C #5CE765
monochromatic
#6E1AAF #9027DF #AB5CE7 #C691EF #E2C7F7

Accessibility & contrast

On white

3.88
#AB5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#AB5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CE7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CE7#FFFFFF#000000##000000
##AB5CE71.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7EEB
Deuteranopia (green-blind)
#4582E4
Tritanopia (blue-blind)
#A27799
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5ce7;
/* rgb */ color: rgb(171, 92, 231);
/* oklch */ color: oklch(62.9% 0.207 307.7);
Tailwind
colors: {
  custom: {
    50: '#c88eef',
    500: '#ab5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ce7;
$custom-light: #c88eef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ce7",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 274.101,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62861,
    "c": 0.20709,
    "h": 307.7
  },
  "luminance": 0.22082
}

Semantic roles & 50–950 ramp

primary
#AB5CE7
secondary
#CCE8B7
accent
#D60F65
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130D16
muted
#827D84

Preview Lab

Preview with #AB5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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