#A787BA#A787BA

#A787BA is a light, moderate violet. Relative luminance 0.291; OKLCH L 67.1% C 0.082 H 312.6°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#A787BA
RGBrgb(167, 135, 186)
HSLhsl(278, 27%, 63%)
HSVhsv(278, 27%, 73%)
CMYKcmyk(10.2%, 27.4%, 0%, 27.1%)
CIE-LABlab(60.86, 21.76, -22.09)
CIE-LCHlch(60.86, 31.01, 314.57°)
OKLaboklab(67.11% 0.0554 -0.0602)
OKLCHoklch(67.11% 0.082 312.6)
XYZxyz(33.4618, 29.0890, 50.2968)
Luminance0.2909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787BA #9ABA87
analogous
#8D87BA #A787BA #BA87B3
triadic
#A787BA #BAA787 #87BAA7
tetradic
#A787BA #BA8D87 #9ABA87 #87B3BA
square
#A787BA #BA8D87 #9ABA87 #87B3BA
split-complementary
#A787BA #B3BA87 #87BA8D
monochromatic
#6A497E #8B60A4 #A787BA #C3AED0 #E0D5E7

Accessibility & contrast

On white

3.08
#A787BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#A787BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A787BA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787BA#FFFFFF#000000##000000
##A787BA1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F91BC
Deuteranopia (green-blind)
#8694B8
Tritanopia (blue-blind)
#A68D99
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #a787ba;
/* rgb */ color: rgb(167, 135, 186);
/* oklch */ color: oklch(67.1% 0.082 312.6);
Tailwind
colors: {
  custom: {
    50: '#c1aacf',
    500: '#a787ba',
    950: '#000000',
  },
}
SCSS
$custom: #a787ba;
$custom-light: #c1aacf;
$custom-dark: #000000;
JSON
{
  "hex": "#a787ba",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 186
  },
  "hsl": {
    "h": 277.647,
    "s": 26.984,
    "l": 62.941
  },
  "oklch": {
    "l": 0.67109,
    "c": 0.08183,
    "h": 312.6
  },
  "luminance": 0.29089
}

Semantic roles & 50–950 ramp

primary
#A787BA
secondary
#CCD8C5
accent
#A64066
background
#FBFAFC
surface
#F7F4F9
border
#D0CED2
text
#121013
muted
#817F82

Preview Lab

Preview with #A787BA

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

Preview Lab → · Contrast checker → · Palette generator →

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