#A781EC#A781EC

#A781EC is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.4% C 0.156 H 298.6°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#A781EC
RGBrgb(167, 129, 236)
HSLhsl(261, 74%, 72%)
HSVhsv(261, 45%, 93%)
CMYKcmyk(29.2%, 45.3%, 0%, 7.5%)
CIE-LABlab(61.63, 36.69, -48.91)
CIE-LCHlch(61.63, 61.14, 306.88°)
OKLaboklab(68.41% 0.0748 -0.1373)
OKLCHoklch(68.41% 0.156 298.6)
XYZxyz(38.9233, 29.9718, 83.0751)
Luminance0.2997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A781EC #C6EC81
analogous
#8191EC #A781EC #DC81EC
triadic
#A781EC #ECA781 #81ECA7
tetradic
#A781EC #EC8191 #C6EC81 #81ECDC
square
#A781EC #EC8191 #C6EC81 #81ECDC
split-complementary
#A781EC #ECDC81 #91EC81
monochromatic
#5F20D3 #824CE4 #A781EC #CCB6F4 #ECE4FB

Accessibility & contrast

On white

3.00
#A781EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#A781EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A781EC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A781EC#FFFFFF#000000##000000
##A781EC1.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6095F0
Deuteranopia (green-blind)
#6894E9
Tritanopia (blue-blind)
#9994AB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a781ec;
/* rgb */ color: rgb(167, 129, 236);
/* oklch */ color: oklch(68.4% 0.156 298.6);
Tailwind
colors: {
  custom: {
    50: '#c4a6f2',
    500: '#a781ec',
    950: '#000000',
  },
}
SCSS
$custom: #a781ec;
$custom-light: #c4a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a781ec",
  "rgb": {
    "r": 167,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 261.308,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68411,
    "c": 0.15631,
    "h": 298.6
  },
  "luminance": 0.29972
}

Semantic roles & 50–950 ramp

primary
#A781EC
secondary
#E8F2D7
accent
#D6108F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #A781EC

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

Preview Lab → · Contrast checker → · Palette generator →

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