#AB7DFB#AB7DFB

#AB7DFB is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.0% C 0.182 H 298.4°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#AB7DFB
RGBrgb(171, 125, 251)
HSLhsl(262, 94%, 74%)
HSVhsv(262, 50%, 98%)
CMYKcmyk(31.9%, 50.2%, 0%, 1.6%)
CIE-LABlab(61.90, 43.64, -56.73)
CIE-LCHlch(61.90, 71.58, 307.57°)
OKLaboklab(68.96% 0.0864 -0.16)
OKLCHoklch(68.96% 0.182 298.4)
XYZxyz(41.5366, 30.2898, 94.9063)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DFB #CDFB7D
analogous
#7D8EFB #AB7DFB #EA7DFB
triadic
#AB7DFB #FBAB7D #7DFBAB
tetradic
#AB7DFB #FB7D8E #CDFB7D #7DFBEA
square
#AB7DFB #FB7D8E #CDFB7D #7DFBEA
split-complementary
#AB7DFB #FBEA7D #8EFB7D
monochromatic
#5F08F6 #8542F9 #AB7DFB #D1B8FD #ECE1FE

Accessibility & contrast

On white

2.98
#AB7DFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#AB7DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7DFB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DFB#FFFFFF#000000##000000
##AB7DFB1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5096FF
Deuteranopia (green-blind)
#5C94F8
Tritanopia (blue-blind)
#9A95B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7dfb;
/* rgb */ color: rgb(171, 125, 251);
/* oklch */ color: oklch(69.0% 0.182 298.4);
Tailwind
colors: {
  custom: {
    50: '#c7a4fd',
    500: '#ab7dfb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7dfb;
$custom-light: #c7a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7dfb",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 261.905,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68959,
    "c": 0.18184,
    "h": 298.4
  },
  "luminance": 0.3029
}

Semantic roles & 50–950 ramp

primary
#AB7DFB
secondary
#EAF6D5
accent
#E60092
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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