#AB7FF4#AB7FF4

#AB7FF4 is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.9% C 0.170 H 299.3°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#AB7FF4
RGBrgb(171, 127, 244)
HSLhsl(263, 84%, 73%)
HSVhsv(263, 48%, 96%)
CMYKcmyk(29.9%, 48%, 0%, 4.3%)
CIE-LABlab(61.97, 40.82, -52.77)
CIE-LCHlch(61.97, 66.71, 307.72°)
OKLaboklab(68.89% 0.0832 -0.1484)
OKLCHoklch(68.89% 0.17 299.3)
XYZxyz(40.7092, 30.3680, 89.2873)
Luminance0.3037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FF4 #C8F47F
analogous
#7F8DF4 #AB7FF4 #E57FF4
triadic
#AB7FF4 #F4AB7F #7FF4AB
tetradic
#AB7FF4 #F47F8D #C8F47F #7FF4E5
square
#AB7FF4 #F47F8D #C8F47F #7FF4E5
split-complementary
#AB7FF4 #F4E57F #8DF47F
monochromatic
#6214E5 #8647EF #AB7FF4 #D0B7F9 #EDE3FD

Accessibility & contrast

On white

2.97
#AB7FF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#AB7FF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7FF4
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FF4#FFFFFF#000000##000000
##AB7FF41.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5996F8
Deuteranopia (green-blind)
#6395F1
Tritanopia (blue-blind)
#9C95AE
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7ff4;
/* rgb */ color: rgb(171, 127, 244);
/* oklch */ color: oklch(68.9% 0.170 299.3);
Tailwind
colors: {
  custom: {
    50: '#c7a5f8',
    500: '#ab7ff4',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ff4;
$custom-light: #c7a5f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ff4",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 262.564,
    "s": 84.173,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68889,
    "c": 0.17014,
    "h": 299.3
  },
  "luminance": 0.30368
}

Semantic roles & 50–950 ramp

primary
#AB7FF4
secondary
#E9F5D6
accent
#E1058E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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