#A787F7#A787F7

#A787F7 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.0% C 0.161 H 295.1°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#A787F7
RGBrgb(167, 135, 247)
HSLhsl(257, 88%, 75%)
HSVhsv(257, 45%, 97%)
CMYKcmyk(32.4%, 45.3%, 0%, 3.1%)
CIE-LABlab(63.56, 36.06, -51.93)
CIE-LCHlch(63.56, 63.22, 304.77°)
OKLaboklab(70.04% 0.0683 -0.1461)
OKLCHoklch(70.04% 0.161 295.1)
XYZxyz(41.3846, 32.2582, 92.0237)
Luminance0.3226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787F7 #D7F787
analogous
#879FF7 #A787F7 #DF87F7
triadic
#A787F7 #F7A787 #87F7A7
tetradic
#A787F7 #F7879F #D7F787 #87F7DF
square
#A787F7 #F7879F #D7F787 #87F7DF
split-complementary
#A787F7 #F7DF87 #9FF787
monochromatic
#5314EF #7D4EF3 #A787F7 #D1C0FB #EAE2FD

Accessibility & contrast

On white

2.82
#A787F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#A787F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787F7
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787F7#FFFFFF#000000##000000
##A787F71.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFB
Deuteranopia (green-blind)
#6898F4
Tritanopia (blue-blind)
#959CB3
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a787f7;
/* rgb */ color: rgb(167, 135, 247);
/* oklch */ color: oklch(70.0% 0.161 295.1);
Tailwind
colors: {
  custom: {
    50: '#c4aafa',
    500: '#a787f7',
    950: '#000000',
  },
}
SCSS
$custom: #a787f7;
$custom-light: #c4aafa;
$custom-dark: #000000;
JSON
{
  "hex": "#a787f7",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 257.143,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70039,
    "c": 0.16128,
    "h": 295.1
  },
  "luminance": 0.32259
}

Semantic roles & 50–950 ramp

primary
#A787F7
secondary
#ECF5D6
accent
#E401A3
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A787F7

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

Preview Lab → · Contrast checker → · Palette generator →

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