#AB6BEC#AB6BEC

#AB6BEC is a light, vivid violet. Relative luminance 0.252; OKLCH L 65.3% C 0.191 H 304.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AB6BEC
RGBrgb(171, 107, 236)
HSLhsl(270, 77%, 67%)
HSVhsv(270, 55%, 93%)
CMYKcmyk(27.5%, 54.7%, 0%, 7.5%)
CIE-LABlab(57.30, 49.76, -55.77)
CIE-LCHlch(57.30, 74.74, 311.74°)
OKLaboklab(65.28% 0.1083 -0.1572)
OKLCHoklch(65.28% 0.191 304.6)
XYZxyz(37.1893, 25.2296, 82.2512)
Luminance0.2523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6BEC #ACEC6B
analogous
#6B6CEC #AB6BEC #EB6BEC
triadic
#AB6BEC #ECAB6B #6BECAB
tetradic
#AB6BEC #EC6B6C #ACEC6B #6BECEB
square
#AB6BEC #EC6B6C #ACEC6B #6BECEB
split-complementary
#AB6BEC #ECEB6B #6CEC6B
monochromatic
#6E19C4 #8C35E5 #AB6BEC #CAA1F3 #E9D7FA

Accessibility & contrast

On white

3.47
#AB6BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#AB6BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6BEC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6BEC#FFFFFF#000000##000000
##AB6BEC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C88F0
Deuteranopia (green-blind)
#528AE9
Tritanopia (blue-blind)
#A083A1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ab6bec;
/* rgb */ color: rgb(171, 107, 236);
/* oklch */ color: oklch(65.3% 0.191 304.6);
Tailwind
colors: {
  custom: {
    50: '#c797f3',
    500: '#ab6bec',
    950: '#000000',
  },
}
SCSS
$custom: #ab6bec;
$custom-light: #c797f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6bec",
  "rgb": {
    "r": 171,
    "g": 107,
    "b": 236
  },
  "hsl": {
    "h": 269.767,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65284,
    "c": 0.19085,
    "h": 304.6
  },
  "luminance": 0.25229
}

Semantic roles & 50–950 ramp

primary
#AB6BEC
secondary
#DAEEC5
accent
#D90C74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB6BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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