#A787FE#A787FE

#A787FE is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.170 H 294.0°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#A787FE
RGBrgb(167, 135, 254)
HSLhsl(256, 98%, 76%)
HSVhsv(256, 47%, 100%)
CMYKcmyk(34.3%, 46.9%, 0%, 0.4%)
CIE-LABlab(63.92, 37.83, -55.20)
CIE-LCHlch(63.92, 66.92, 304.43°)
OKLaboklab(70.43% 0.0692 -0.1556)
OKLCHoklch(70.43% 0.17 294)
XYZxyz(42.4851, 32.6984, 97.8198)
Luminance0.3270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787FE #DEFE87
analogous
#87A3FE #A787FE #E287FE
triadic
#A787FE #FEA787 #87FEA7
tetradic
#A787FE #FE87A3 #DEFE87 #87FEE2
square
#A787FE #FE87A3 #DEFE87 #87FEE2
split-complementary
#A787FE #FEE287 #A3FE87
monochromatic
#4E0EFD #7A4AFD #A787FE #D4C4FF #E9E1FF

Accessibility & contrast

On white

2.79
#A787FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#A787FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787FE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787FE#FFFFFF#000000##000000
##A787FE1.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9CFF
Deuteranopia (green-blind)
#6399FB
Tritanopia (blue-blind)
#929EB6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #a787fe;
/* rgb */ color: rgb(167, 135, 254);
/* oklch */ color: oklch(70.4% 0.170 294.0);
Tailwind
colors: {
  custom: {
    50: '#c4aaff',
    500: '#a787fe',
    950: '#000000',
  },
}
SCSS
$custom: #a787fe;
$custom-light: #c4aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#a787fe",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 256.134,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70427,
    "c": 0.17032,
    "h": 294
  },
  "luminance": 0.32699
}

Semantic roles & 50–950 ramp

primary
#A787FE
secondary
#EEF7D4
accent
#E600A8
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A787FE

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

Preview Lab → · Contrast checker → · Palette generator →

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