#A787FD#A787FD

#A787FD is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.4% C 0.169 H 294.1°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#A787FD
RGBrgb(167, 135, 253)
HSLhsl(256, 97%, 76%)
HSVhsv(256, 47%, 99%)
CMYKcmyk(34%, 46.6%, 0%, 0.8%)
CIE-LABlab(63.86, 37.58, -54.73)
CIE-LCHlch(63.86, 66.39, 304.47°)
OKLaboklab(70.37% 0.0691 -0.1543)
OKLCHoklch(70.37% 0.169 294.1)
XYZxyz(42.3254, 32.6345, 96.9786)
Luminance0.3263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787FD #DDFD87
analogous
#87A2FD #A787FD #E287FD
triadic
#A787FD #FDA787 #87FDA7
tetradic
#A787FD #FD87A2 #DDFD87 #87FDE2
square
#A787FD #FD87A2 #DDFD87 #87FDE2
split-complementary
#A787FD #FDE287 #A2FD87
monochromatic
#4F0FFB #7B4BFC #A787FD #D3C3FE #E9E1FE

Accessibility & contrast

On white

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

On black

7.53
#A787FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787FD
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787FD#FFFFFF#000000##000000
##A787FD1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9CFF
Deuteranopia (green-blind)
#6499FA
Tritanopia (blue-blind)
#939EB6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #a787fd;
/* rgb */ color: rgb(167, 135, 253);
/* oklch */ color: oklch(70.4% 0.169 294.1);
Tailwind
colors: {
  custom: {
    50: '#c4aafe',
    500: '#a787fd',
    950: '#000000',
  },
}
SCSS
$custom: #a787fd;
$custom-light: #c4aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#a787fd",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 256.271,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.70371,
    "c": 0.16903,
    "h": 294.1
  },
  "luminance": 0.32635
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A787FD

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

Preview Lab → · Contrast checker → · Palette generator →

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