#A787DB#A787DB

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

Color values

HEX#A787DB
RGBrgb(167, 135, 219)
HSLhsl(263, 54%, 69%)
HSVhsv(263, 38%, 86%)
CMYKcmyk(23.7%, 38.4%, 0%, 14.1%)
CIE-LABlab(62.22, 29.20, -38.54)
CIE-LCHlch(62.22, 48.35, 307.15°)
OKLaboklab(68.59% 0.0637 -0.1072)
OKLCHoklch(68.59% 0.125 300.7)
XYZxyz(37.3837, 30.6578, 70.9522)
Luminance0.3066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787DB #BBDB87
analogous
#8791DB #A787DB #D187DB
triadic
#A787DB #DBA787 #87DBA7
tetradic
#A787DB #DB8791 #BBDB87 #87DBD1
square
#A787DB #DB8791 #BBDB87 #87DBD1
split-complementary
#A787DB #DBD187 #91DB87
monochromatic
#6535B2 #8458CD #A787DB #CAB6E9 #ECE5F7

Accessibility & contrast

On white

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

On black

7.13
#A787DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787DB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787DB#FFFFFF#000000##000000
##A787DB1.002.947.137.13
#FFFFFF2.941.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7296DE
Deuteranopia (green-blind)
#7896D9
Tritanopia (blue-blind)
#9E95A7
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #a787db;
/* rgb */ color: rgb(167, 135, 219);
/* oklch */ color: oklch(68.6% 0.125 300.7);
Tailwind
colors: {
  custom: {
    50: '#c2aae6',
    500: '#a787db',
    950: '#000000',
  },
}
SCSS
$custom: #a787db;
$custom-light: #c2aae6;
$custom-dark: #000000;
JSON
{
  "hex": "#a787db",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 262.857,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68591,
    "c": 0.12466,
    "h": 300.7
  },
  "luminance": 0.30658
}

Semantic roles & 50–950 ramp

primary
#A787DB
secondary
#E2EBD3
accent
#C12485
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #A787DB

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

Preview Lab → · Contrast checker → · Palette generator →

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