#AB7FFB#AB7FFB

#AB7FFB is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.3% C 0.179 H 298.0°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#AB7FFB
RGBrgb(171, 127, 251)
HSLhsl(261, 94%, 74%)
HSVhsv(261, 49%, 98%)
CMYKcmyk(31.9%, 49.4%, 0%, 1.6%)
CIE-LABlab(62.34, 42.54, -56.04)
CIE-LCHlch(62.34, 70.35, 307.20°)
OKLaboklab(69.28% 0.0838 -0.158)
OKLCHoklch(69.28% 0.179 298)
XYZxyz(41.7923, 30.8012, 94.9915)
Luminance0.3080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FFB #CFFB7F
analogous
#7F91FB #AB7FFB #E97FFB
triadic
#AB7FFB #FBAB7F #7FFBAB
tetradic
#AB7FFB #FB7F91 #CFFB7F #7FFBE9
square
#AB7FFB #FB7F91 #CFFB7F #7FFBE9
split-complementary
#AB7FFB #FBE97F #91FB7F
monochromatic
#5D08F7 #8444F9 #AB7FFB #D2BAFD #ECE1FE

Accessibility & contrast

On white

2.93
#AB7FFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AB7FFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7FFB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FFB#FFFFFF#000000##000000
##AB7FFB1.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5497FF
Deuteranopia (green-blind)
#5E95F8
Tritanopia (blue-blind)
#9A97B1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab7ffb;
/* rgb */ color: rgb(171, 127, 251);
/* oklch */ color: oklch(69.3% 0.179 298.0);
Tailwind
colors: {
  custom: {
    50: '#c7a5fd',
    500: '#ab7ffb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ffb;
$custom-light: #c7a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ffb",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 261.29,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.69284,
    "c": 0.17885,
    "h": 298
  },
  "luminance": 0.30802
}

Semantic roles & 50–950 ramp

primary
#AB7FFB
secondary
#EAF6D5
accent
#E60094
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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