#A787F9#A787F9

#A787F9 is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.1% C 0.164 H 294.7°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#A787F9
RGBrgb(167, 135, 249)
HSLhsl(257, 90%, 75%)
HSVhsv(257, 46%, 98%)
CMYKcmyk(32.9%, 45.8%, 0%, 2.4%)
CIE-LABlab(63.66, 36.56, -52.87)
CIE-LCHlch(63.66, 64.28, 304.67°)
OKLaboklab(70.15% 0.0686 -0.1488)
OKLCHoklch(70.15% 0.164 294.7)
XYZxyz(41.6949, 32.3823, 93.6578)
Luminance0.3238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787F9 #D9F987
analogous
#87A0F9 #A787F9 #E087F9
triadic
#A787F9 #F9A787 #87F9A7
tetradic
#A787F9 #F987A0 #D9F987 #87F9E0
square
#A787F9 #F987A0 #D9F987 #87F9E0
split-complementary
#A787F9 #F9E087 #A0F987
monochromatic
#5212F3 #7C4DF6 #A787F9 #D2C1FC #EAE2FE

Accessibility & contrast

On white

2.81
#A787F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#A787F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787F9
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787F9#FFFFFF#000000##000000
##A787F91.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFD
Deuteranopia (green-blind)
#6798F6
Tritanopia (blue-blind)
#949DB4
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a787f9;
/* rgb */ color: rgb(167, 135, 249);
/* oklch */ color: oklch(70.1% 0.164 294.7);
Tailwind
colors: {
  custom: {
    50: '#c4aafc',
    500: '#a787f9',
    950: '#000000',
  },
}
SCSS
$custom: #a787f9;
$custom-light: #c4aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#a787f9",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 256.842,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.70149,
    "c": 0.16387,
    "h": 294.7
  },
  "luminance": 0.32383
}

Semantic roles & 50–950 ramp

primary
#A787F9
secondary
#EDF6D5
accent
#E600A5
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A787F9

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

Preview Lab → · Contrast checker → · Palette generator →

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