#A787FC#A787FC

#A787FC is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.3% C 0.168 H 294.3°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#A787FC
RGBrgb(167, 135, 252)
HSLhsl(256, 95%, 76%)
HSVhsv(256, 46%, 99%)
CMYKcmyk(33.7%, 46.4%, 0%, 1.2%)
CIE-LABlab(63.81, 37.32, -54.27)
CIE-LCHlch(63.81, 65.86, 304.52°)
OKLaboklab(70.32% 0.069 -0.1529)
OKLCHoklch(70.32% 0.168 294.3)
XYZxyz(42.1665, 32.5709, 96.1418)
Luminance0.3257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787FC #DCFC87
analogous
#87A1FC #A787FC #E187FC
triadic
#A787FC #FCA787 #87FCA7
tetradic
#A787FC #FC87A1 #DCFC87 #87FCE1
square
#A787FC #FC87A1 #DCFC87 #87FCE1
split-complementary
#A787FC #FCE187 #A1FC87
monochromatic
#4F10F9 #7B4BFB #A787FC #D3C3FD #E9E1FE

Accessibility & contrast

On white

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

On black

7.51
#A787FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787FC
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787FC#FFFFFF#000000##000000
##A787FC1.002.797.517.51
#FFFFFF2.791.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9CFF
Deuteranopia (green-blind)
#6499F9
Tritanopia (blue-blind)
#939DB6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #a787fc;
/* rgb */ color: rgb(167, 135, 252);
/* oklch */ color: oklch(70.3% 0.168 294.3);
Tailwind
colors: {
  custom: {
    50: '#c4aafe',
    500: '#a787fc',
    950: '#000000',
  },
}
SCSS
$custom: #a787fc;
$custom-light: #c4aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#a787fc",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 256.41,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.70315,
    "c": 0.16774,
    "h": 294.3
  },
  "luminance": 0.32572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A787FC

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

Preview Lab → · Contrast checker → · Palette generator →

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