#A787FA#A787FA

#A787FA is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.2% C 0.165 H 294.6°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#A787FA
RGBrgb(167, 135, 250)
HSLhsl(257, 92%, 75%)
HSVhsv(257, 46%, 98%)
CMYKcmyk(33.2%, 46%, 0%, 2%)
CIE-LABlab(63.71, 36.82, -53.33)
CIE-LCHlch(63.71, 64.81, 304.62°)
OKLaboklab(70.2% 0.0687 -0.1502)
OKLCHoklch(70.2% 0.165 294.6)
XYZxyz(41.8513, 32.4448, 94.4815)
Luminance0.3245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787FA #DAFA87
analogous
#87A0FA #A787FA #E187FA
triadic
#A787FA #FAA787 #87FAA7
tetradic
#A787FA #FA87A0 #DAFA87 #87FAE1
square
#A787FA #FA87A0 #DAFA87 #87FAE1
split-complementary
#A787FA #FAE187 #A0FA87
monochromatic
#5111F5 #7C4CF8 #A787FA #D2C2FC #E9E2FE

Accessibility & contrast

On white

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

On black

7.49
#A787FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787FA
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787FA#FFFFFF#000000##000000
##A787FA1.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#609BFE
Deuteranopia (green-blind)
#6699F7
Tritanopia (blue-blind)
#949DB5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a787fa;
/* rgb */ color: rgb(167, 135, 250);
/* oklch */ color: oklch(70.2% 0.165 294.6);
Tailwind
colors: {
  custom: {
    50: '#c4aafc',
    500: '#a787fa',
    950: '#000000',
  },
}
SCSS
$custom: #a787fa;
$custom-light: #c4aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#a787fa",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 256.696,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.70204,
    "c": 0.16516,
    "h": 294.6
  },
  "luminance": 0.32446
}

Semantic roles & 50–950 ramp

primary
#A787FA
secondary
#EDF6D5
accent
#E600A6
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A787FA

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

Preview Lab → · Contrast checker → · Palette generator →

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