#A787DC#A787DC

#A787DC is a light, vivid violet. Relative luminance 0.307; OKLCH L 68.6% C 0.126 H 300.5°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#A787DC
RGBrgb(167, 135, 220)
HSLhsl(263, 55%, 70%)
HSVhsv(263, 39%, 86%)
CMYKcmyk(24.1%, 38.6%, 0%, 13.7%)
CIE-LABlab(62.26, 29.43, -39.02)
CIE-LCHlch(62.26, 48.88, 307.03°)
OKLaboklab(68.64% 0.0639 -0.1086)
OKLCHoklch(68.64% 0.126 300.5)
XYZxyz(37.5157, 30.7106, 71.6476)
Luminance0.3071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787DC #BCDC87
analogous
#8792DC #A787DC #D287DC
triadic
#A787DC #DCA787 #87DCA7
tetradic
#A787DC #DC8792 #BCDC87 #87DCD2
square
#A787DC #DC8792 #BCDC87 #87DCD2
split-complementary
#A787DC #DCD287 #92DC87
monochromatic
#6535B4 #8458CE #A787DC #CAB6EA #ECE6F8

Accessibility & contrast

On white

2.94
#A787DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#A787DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787DC
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787DC#FFFFFF#000000##000000
##A787DC1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7296DF
Deuteranopia (green-blind)
#7896DA
Tritanopia (blue-blind)
#9D95A7
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #a787dc;
/* rgb */ color: rgb(167, 135, 220);
/* oklch */ color: oklch(68.6% 0.126 300.5);
Tailwind
colors: {
  custom: {
    50: '#c2aae7',
    500: '#a787dc',
    950: '#000000',
  },
}
SCSS
$custom: #a787dc;
$custom-light: #c2aae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a787dc",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 262.588,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.6864,
    "c": 0.12598,
    "h": 300.5
  },
  "luminance": 0.30711
}

Semantic roles & 50–950 ramp

primary
#A787DC
secondary
#E2ECD3
accent
#C22386
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #A787DC

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

Preview Lab → · Contrast checker → · Palette generator →

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