#A787CC#A787CC

#A787CC is a light, moderate violet. Relative luminance 0.299; OKLCH L 67.9% C 0.105 H 305.0°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#A787CC
RGBrgb(167, 135, 204)
HSLhsl(268, 40%, 66%)
HSVhsv(268, 34%, 80%)
CMYKcmyk(18.1%, 33.8%, 0%, 20%)
CIE-LABlab(61.57, 25.72, -31.15)
CIE-LCHlch(61.57, 40.39, 309.54°)
OKLaboklab(67.89% 0.0603 -0.0859)
OKLCHoklch(67.89% 0.105 305)
XYZxyz(35.4972, 29.9032, 61.0169)
Luminance0.2990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787CC #ACCC87
analogous
#878ACC #A787CC #CA87CC
triadic
#A787CC #CCA787 #87CCA7
tetradic
#A787CC #CC878A #ACCC87 #87CCCA
square
#A787CC #CC878A #ACCC87 #87CCCA
split-complementary
#A787CC #CCCA87 #8ACC87
monochromatic
#694198 #885CBA #A787CC #C6B2DE #E6DDF1

Accessibility & contrast

On white

3.01
#A787CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#A787CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A787CC
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787CC#FFFFFF#000000##000000
##A787CC1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7994CF
Deuteranopia (green-blind)
#7F95CA
Tritanopia (blue-blind)
#A191A0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a787cc;
/* rgb */ color: rgb(167, 135, 204);
/* oklch */ color: oklch(67.9% 0.105 305.0);
Tailwind
colors: {
  custom: {
    50: '#c2aadb',
    500: '#a787cc',
    950: '#000000',
  },
}
SCSS
$custom: #a787cc;
$custom-light: #c2aadb;
$custom-dark: #000000;
JSON
{
  "hex": "#a787cc",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 267.826,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.67887,
    "c": 0.10498,
    "h": 305
  },
  "luminance": 0.29903
}

Semantic roles & 50–950 ramp

primary
#A787CC
secondary
#D8E3CC
accent
#B33277
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#121015
muted
#817F83

Preview Lab

Preview with #A787CC

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

Preview Lab → · Contrast checker → · Palette generator →

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