#AB7CF8#AB7CF8

#AB7CF8 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.6% C 0.180 H 299.1°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AB7CF8
RGBrgb(171, 124, 248)
HSLhsl(263, 90%, 73%)
HSVhsv(263, 50%, 97%)
CMYKcmyk(31%, 50%, 0%, 2.7%)
CIE-LABlab(61.52, 43.45, -55.68)
CIE-LCHlch(61.52, 70.63, 307.97°)
OKLaboklab(68.63% 0.0874 -0.1569)
OKLCHoklch(68.63% 0.18 299.1)
XYZxyz(40.9415, 29.8502, 92.3934)
Luminance0.2985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CF8 #C9F87C
analogous
#7C8BF8 #AB7CF8 #E97CF8
triadic
#AB7CF8 #F8AB7C #7CF8AB
tetradic
#AB7CF8 #F87C8B #C9F87C #7CF8E9
square
#AB7CF8 #F87C8B #C9F87C #7CF8E9
split-complementary
#AB7CF8 #F8E97C #8BF87C
monochromatic
#620DED #8642F5 #AB7CF8 #D0B6FB #ECE2FD

Accessibility & contrast

On white

3.01
#AB7CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AB7CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7CF8
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CF8#FFFFFF#000000##000000
##AB7CF81.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FC
Deuteranopia (green-blind)
#5D94F5
Tritanopia (blue-blind)
#9B94AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7cf8;
/* rgb */ color: rgb(171, 124, 248);
/* oklch */ color: oklch(68.6% 0.180 299.1);
Tailwind
colors: {
  custom: {
    50: '#c7a3fb',
    500: '#ab7cf8',
    950: '#000000',
  },
}
SCSS
$custom: #ab7cf8;
$custom-light: #c7a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7cf8",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 262.742,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68625,
    "c": 0.17964,
    "h": 299.1
  },
  "luminance": 0.29851
}

Semantic roles & 50–950 ramp

primary
#AB7CF8
secondary
#E9F6D5
accent
#E6008F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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