#AB7CFC#AB7CFC

#AB7CFC is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.9% C 0.185 H 298.4°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AB7CFC
RGBrgb(171, 124, 252)
HSLhsl(262, 96%, 74%)
HSVhsv(262, 51%, 99%)
CMYKcmyk(32.1%, 50.8%, 0%, 1.2%)
CIE-LABlab(61.74, 44.44, -57.54)
CIE-LCHlch(61.74, 72.70, 307.68°)
OKLaboklab(68.86% 0.0877 -0.1624)
OKLCHoklch(68.86% 0.185 298.4)
XYZxyz(41.5687, 30.1011, 95.6966)
Luminance0.3010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CFC #CDFC7C
analogous
#7C8DFC #AB7CFC #EB7CFC
triadic
#AB7CFC #FCAB7C #7CFCAB
tetradic
#AB7CFC #FC7C8D #CDFC7C #7CFCEB
square
#AB7CFC #FC7C8D #CDFC7C #7CFCEB
split-complementary
#AB7CFC #FCEB7C #8DFC7C
monochromatic
#5F06F8 #8540FB #AB7CFC #D1B8FD #ECE1FE

Accessibility & contrast

On white

2.99
#AB7CFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#AB7CFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7CFC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CFC#FFFFFF#000000##000000
##AB7CFC1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#5A94F9
Tritanopia (blue-blind)
#9A95B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7cfc;
/* rgb */ color: rgb(171, 124, 252);
/* oklch */ color: oklch(68.9% 0.185 298.4);
Tailwind
colors: {
  custom: {
    50: '#c7a3fe',
    500: '#ab7cfc',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cfc;
$custom-light: #c7a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cfc",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 252
  },
  "hsl": {
    "h": 262.031,
    "s": 95.522,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68856,
    "c": 0.18456,
    "h": 298.4
  },
  "luminance": 0.30102
}

Semantic roles & 50–950 ramp

primary
#AB7CFC
secondary
#EAF7D4
accent
#E60091
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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