#AB7BF2#AB7BF2

#AB7BF2 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.1% C 0.174 H 300.5°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#AB7BF2
RGBrgb(171, 123, 242)
HSLhsl(264, 82%, 72%)
HSVhsv(264, 49%, 95%)
CMYKcmyk(29.3%, 49.2%, 0%, 5.1%)
CIE-LABlab(60.99, 42.54, -53.22)
CIE-LCHlch(60.99, 68.14, 308.63°)
OKLaboklab(68.12% 0.0882 -0.1498)
OKLCHoklch(68.12% 0.174 300.5)
XYZxyz(39.9008, 29.2345, 87.5279)
Luminance0.2923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BF2 #C2F27B
analogous
#7B87F2 #AB7BF2 #E77BF2
triadic
#AB7BF2 #F2AB7B #7BF2AB
tetradic
#AB7BF2 #F27B87 #C2F27B #7BF2E7
square
#AB7BF2 #F27B87 #C2F27B #7BF2E7
split-complementary
#AB7BF2 #F2E77B #87F27B
monochromatic
#6616DD #8843ED #AB7BF2 #CEB3F7 #EDE3FC

Accessibility & contrast

On white

3.07
#AB7BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#AB7BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BF2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BF2#FFFFFF#000000##000000
##AB7BF21.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5493F6
Deuteranopia (green-blind)
#6092EF
Tritanopia (blue-blind)
#9D91AB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ab7bf2;
/* rgb */ color: rgb(171, 123, 242);
/* oklch */ color: oklch(68.1% 0.174 300.5);
Tailwind
colors: {
  custom: {
    50: '#c7a2f7',
    500: '#ab7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bf2;
$custom-light: #c7a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bf2",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 264.202,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68122,
    "c": 0.17378,
    "h": 300.5
  },
  "luminance": 0.29235
}

Semantic roles & 50–950 ramp

primary
#AB7BF2
secondary
#E7F4D5
accent
#DE0788
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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