#AB7CF7#AB7CF7

#AB7CF7 is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.6% C 0.178 H 299.3°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AB7CF7
RGBrgb(171, 124, 247)
HSLhsl(263, 88%, 73%)
HSVhsv(263, 50%, 97%)
CMYKcmyk(30.8%, 49.8%, 0%, 3.1%)
CIE-LABlab(61.47, 43.21, -55.22)
CIE-LCHlch(61.47, 70.11, 308.04°)
OKLaboklab(68.57% 0.0873 -0.1556)
OKLCHoklch(68.57% 0.178 299.3)
XYZxyz(40.7867, 29.7883, 91.5786)
Luminance0.2979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CF7 #C8F77C
analogous
#7C8AF7 #AB7CF7 #E97CF7
triadic
#AB7CF7 #F7AB7C #7CF7AB
tetradic
#AB7CF7 #F77C8A #C8F77C #7CF7E9
square
#AB7CF7 #F77C8A #C8F77C #7CF7E9
split-complementary
#AB7CF7 #F7E97C #8AF77C
monochromatic
#620EEA #8642F3 #AB7CF7 #D0B6FB #EDE2FD

Accessibility & contrast

On white

3.02
#AB7CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AB7CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7CF7
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CF7#FFFFFF#000000##000000
##AB7CF71.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5294FB
Deuteranopia (green-blind)
#5E93F4
Tritanopia (blue-blind)
#9B93AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7cf7;
/* rgb */ color: rgb(171, 124, 247);
/* oklch */ color: oklch(68.6% 0.178 299.3);
Tailwind
colors: {
  custom: {
    50: '#c7a3fa',
    500: '#ab7cf7',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cf7;
$custom-light: #c7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cf7",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 262.927,
    "s": 88.489,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68568,
    "c": 0.17841,
    "h": 299.3
  },
  "luminance": 0.29789
}

Semantic roles & 50–950 ramp

primary
#AB7CF7
secondary
#E9F5D6
accent
#E5008E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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