#AB4CE6#AB4CE6

#AB4CE6 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.8% C 0.227 H 309.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AB4CE6
RGBrgb(171, 76, 230)
HSLhsl(277, 75%, 60%)
HSVhsv(277, 67%, 90%)
CMYKcmyk(25.7%, 67%, 0%, 9.8%)
CIE-LABlab(51.31, 63.60, -62.01)
CIE-LCHlch(51.31, 88.83, 315.73°)
OKLaboklab(60.82% 0.1447 -0.1753)
OKLCHoklch(60.82% 0.227 309.5)
XYZxyz(33.6591, 19.5406, 76.8461)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CE6 #87E64C
analogous
#5E4CE6 #AB4CE6 #E64CD4
triadic
#AB4CE6 #E6AB4C #4CE6AB
tetradic
#AB4CE6 #E65E4C #87E64C #4CD4E6
square
#AB4CE6 #E65E4C #87E64C #4CD4E6
split-complementary
#AB4CE6 #D4E64C #4CE65E
monochromatic
#6C17A1 #901ED7 #AB4CE6 #C482ED #DDB7F5

Accessibility & contrast

On white

4.28
#AB4CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#AB4CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CE6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CE6#FFFFFF#000000##000000
##AB4CE61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EB
Deuteranopia (green-blind)
#327CE3
Tritanopia (blue-blind)
#A36D93
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab4ce6;
/* rgb */ color: rgb(171, 76, 230);
/* oklch */ color: oklch(60.8% 0.227 309.5);
Tailwind
colors: {
  custom: {
    50: '#c885ef',
    500: '#ab4ce6',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ce6;
$custom-light: #c885ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ce6",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 230
  },
  "hsl": {
    "h": 277.013,
    "s": 75.49,
    "l": 60
  },
  "oklch": {
    "l": 0.6082,
    "c": 0.22737,
    "h": 309.5
  },
  "luminance": 0.1954
}

Semantic roles & 50–950 ramp

primary
#AB4CE6
secondary
#C0E5A9
accent
#F2367E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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