#A787FF#A787FF

#A787FF is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.5% C 0.172 H 293.8°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#A787FF
RGBrgb(167, 135, 255)
HSLhsl(256, 100%, 76%)
HSVhsv(256, 47%, 100%)
CMYKcmyk(34.5%, 47.1%, 0%, 0%)
CIE-LABlab(63.97, 38.09, -55.66)
CIE-LCHlch(63.97, 67.45, 304.38°)
OKLaboklab(70.48% 0.0693 -0.157)
OKLCHoklch(70.48% 0.172 293.8)
XYZxyz(42.6457, 32.7626, 98.6653)
Luminance0.3276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787FF #DFFF87
analogous
#87A3FF #A787FF #E387FF
triadic
#A787FF #FFA787 #87FFA7
tetradic
#A787FF #FF87A3 #DFFF87 #87FFE3
square
#A787FF #FF87A3 #DFFF87 #87FFE3
split-complementary
#A787FF #FFE387 #A3FF87
monochromatic
#4D0DFF #7A4AFF #A787FF #D4C4FF #E9E0FF

Accessibility & contrast

On white

2.78
#A787FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#A787FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787FF
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787FF#FFFFFF#000000##000000
##A787FF1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9CFF
Deuteranopia (green-blind)
#6299FC
Tritanopia (blue-blind)
#929EB7
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #a787ff;
/* rgb */ color: rgb(167, 135, 255);
/* oklch */ color: oklch(70.5% 0.172 293.8);
Tailwind
colors: {
  custom: {
    50: '#c5aaff',
    500: '#a787ff',
    950: '#000000',
  },
}
SCSS
$custom: #a787ff;
$custom-light: #c5aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#a787ff",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 256,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.70483,
    "c": 0.17161,
    "h": 293.8
  },
  "luminance": 0.32763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A787FF

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

Preview Lab → · Contrast checker → · Palette generator →

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