#AB7DF2#AB7DF2

#AB7DF2 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.4% C 0.171 H 300.1°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AB7DF2
RGBrgb(171, 125, 242)
HSLhsl(264, 82%, 72%)
HSVhsv(264, 48%, 95%)
CMYKcmyk(29.3%, 48.3%, 0%, 5.1%)
CIE-LABlab(61.43, 41.44, -52.53)
CIE-LCHlch(61.43, 66.91, 308.27°)
OKLaboklab(68.45% 0.0856 -0.1477)
OKLCHoklch(68.45% 0.171 300.1)
XYZxyz(40.1515, 29.7357, 87.6114)
Luminance0.2974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DF2 #C4F27D
analogous
#7D8AF2 #AB7DF2 #E67DF2
triadic
#AB7DF2 #F2AB7D #7DF2AB
tetradic
#AB7DF2 #F27D8A #C4F27D #7DF2E6
square
#AB7DF2 #F27D8A #C4F27D #7DF2E6
split-complementary
#AB7DF2 #F2E67D #8AF27D
monochromatic
#6516DE #8745EC #AB7DF2 #CFB5F8 #EDE3FC

Accessibility & contrast

On white

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

On black

6.95
#AB7DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7DF2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DF2#FFFFFF#000000##000000
##AB7DF21.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5794F6
Deuteranopia (green-blind)
#6394EF
Tritanopia (blue-blind)
#9D93AC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7df2;
/* rgb */ color: rgb(171, 125, 242);
/* oklch */ color: oklch(68.4% 0.171 300.1);
Tailwind
colors: {
  custom: {
    50: '#c7a3f7',
    500: '#ab7df2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7df2;
$custom-light: #c7a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7df2",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 263.59,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68448,
    "c": 0.17071,
    "h": 300.1
  },
  "luminance": 0.29736
}

Semantic roles & 50–950 ramp

primary
#AB7DF2
secondary
#E9F4D7
accent
#DE078A
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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