#A787FB#A787FB

#A787FB is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.3% C 0.166 H 294.4°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#A787FB
RGBrgb(167, 135, 251)
HSLhsl(257, 94%, 76%)
HSVhsv(257, 46%, 98%)
CMYKcmyk(33.5%, 46.2%, 0%, 1.6%)
CIE-LABlab(63.76, 37.07, -53.80)
CIE-LCHlch(63.76, 65.33, 304.57°)
OKLaboklab(70.26% 0.0689 -0.1515)
OKLCHoklch(70.26% 0.166 294.4)
XYZxyz(42.0085, 32.5077, 95.3094)
Luminance0.3251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787FB #DBFB87
analogous
#87A1FB #A787FB #E187FB
triadic
#A787FB #FBA787 #87FBA7
tetradic
#A787FB #FB87A1 #DBFB87 #87FBE1
square
#A787FB #FB87A1 #DBFB87 #87FBE1
split-complementary
#A787FB #FBE187 #A1FB87
monochromatic
#5011F7 #7C4CF9 #A787FB #D2C2FD #E9E1FE

Accessibility & contrast

On white

2.80
#A787FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#A787FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787FB
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787FB#FFFFFF#000000##000000
##A787FB1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#6599F8
Tritanopia (blue-blind)
#949DB5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a787fb;
/* rgb */ color: rgb(167, 135, 251);
/* oklch */ color: oklch(70.3% 0.166 294.4);
Tailwind
colors: {
  custom: {
    50: '#c4aafd',
    500: '#a787fb',
    950: '#000000',
  },
}
SCSS
$custom: #a787fb;
$custom-light: #c4aafd;
$custom-dark: #000000;
JSON
{
  "hex": "#a787fb",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 256.552,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.7026,
    "c": 0.16646,
    "h": 294.4
  },
  "luminance": 0.32508
}

Semantic roles & 50–950 ramp

primary
#A787FB
secondary
#EDF6D5
accent
#E600A6
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A787FB

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

Preview Lab → · Contrast checker → · Palette generator →

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