#A786E3#A786E3

#A786E3 is a light, vivid violet. Relative luminance 0.308; OKLCH L 68.8% C 0.137 H 299.1°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#A786E3
RGBrgb(167, 134, 227)
HSLhsl(261, 62%, 71%)
HSVhsv(261, 41%, 89%)
CMYKcmyk(26.4%, 41%, 0%, 11%)
CIE-LABlab(62.35, 31.68, -42.78)
CIE-LCHlch(62.35, 53.23, 306.52°)
OKLaboklab(68.81% 0.0666 -0.1195)
OKLCHoklch(68.81% 0.137 299.1)
XYZxyz(38.3234, 30.8115, 76.5863)
Luminance0.3081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786E3 #C2E386
analogous
#8693E3 #A786E3 #D586E3
triadic
#A786E3 #E3A786 #86E3A7
tetradic
#A786E3 #E38693 #C2E386 #86E3D5
square
#A786E3 #E38693 #C2E386 #86E3D5
split-complementary
#A786E3 #E3D586 #93E386
monochromatic
#622DC2 #8354D7 #A786E3 #CBB8EF #EDE6F9

Accessibility & contrast

On white

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

On black

7.16
#A786E3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786E3
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786E3#FFFFFF#000000##000000
##A786E31.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D97E6
Deuteranopia (green-blind)
#7396E1
Tritanopia (blue-blind)
#9B96AA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #a786e3;
/* rgb */ color: rgb(167, 134, 227);
/* oklch */ color: oklch(68.8% 0.137 299.1);
Tailwind
colors: {
  custom: {
    50: '#c3a9ec',
    500: '#a786e3',
    950: '#000000',
  },
}
SCSS
$custom: #a786e3;
$custom-light: #c3a9ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a786e3",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 227
  },
  "hsl": {
    "h": 261.29,
    "s": 62.416,
    "l": 70.784
  },
  "oklch": {
    "l": 0.6881,
    "c": 0.13677,
    "h": 299.1
  },
  "luminance": 0.30812
}

Semantic roles & 50–950 ramp

primary
#A786E3
secondary
#E6EFD6
accent
#CA1B8C
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #A786E3

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

Preview Lab → · Contrast checker → · Palette generator →

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