#A787DF#A787DF

#A787DF is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.8% C 0.130 H 299.7°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#A787DF
RGBrgb(167, 135, 223)
HSLhsl(262, 58%, 70%)
HSVhsv(262, 39%, 87%)
CMYKcmyk(25.1%, 39.5%, 0%, 12.5%)
CIE-LABlab(62.40, 30.15, -40.48)
CIE-LCHlch(62.40, 50.47, 306.68°)
OKLaboklab(68.79% 0.0645 -0.1128)
OKLCHoklch(68.79% 0.13 299.7)
XYZxyz(37.9166, 30.8710, 73.7588)
Luminance0.3087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A787DF #BFDF87
analogous
#8793DF #A787DF #D387DF
triadic
#A787DF #DFA787 #87DFA7
tetradic
#A787DF #DF8793 #BFDF87 #87DFD3
square
#A787DF #DF8793 #BFDF87 #87DFD3
split-complementary
#A787DF #DFD387 #93DF87
monochromatic
#6332BA #8457D2 #A787DF #CAB7EC #EDE7F9

Accessibility & contrast

On white

2.93
#A787DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#A787DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A787DF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A787DF#FFFFFF#000000##000000
##A787DF1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7097E2
Deuteranopia (green-blind)
#7696DD
Tritanopia (blue-blind)
#9C96A8
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #a787df;
/* rgb */ color: rgb(167, 135, 223);
/* oklch */ color: oklch(68.8% 0.130 299.7);
Tailwind
colors: {
  custom: {
    50: '#c3aae9',
    500: '#a787df',
    950: '#000000',
  },
}
SCSS
$custom: #a787df;
$custom-light: #c3aae9;
$custom-dark: #000000;
JSON
{
  "hex": "#a787df",
  "rgb": {
    "r": 167,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 261.818,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68788,
    "c": 0.12992,
    "h": 299.7
  },
  "luminance": 0.30871
}

Semantic roles & 50–950 ramp

primary
#A787DF
secondary
#E4EDD5
accent
#C52089
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #A787DF

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

Preview Lab → · Contrast checker → · Palette generator →

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