#A381EC#A381EC

#A381EC is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.0% C 0.156 H 296.7°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#A381EC
RGBrgb(163, 129, 236)
HSLhsl(259, 74%, 72%)
HSVhsv(259, 45%, 93%)
CMYKcmyk(30.9%, 45.3%, 0%, 7.5%)
CIE-LABlab(61.26, 35.63, -49.52)
CIE-LCHlch(61.26, 61.01, 305.73°)
OKLaboklab(68.04% 0.07 -0.1392)
OKLCHoklch(68.04% 0.156 296.7)
XYZxyz(38.0911, 29.5427, 83.0361)
Luminance0.2954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A381EC #CAEC81
analogous
#8195EC #A381EC #D881EC
triadic
#A381EC #ECA381 #81ECA3
tetradic
#A381EC #EC8195 #CAEC81 #81ECD8
square
#A381EC #EC8195 #CAEC81 #81ECD8
split-complementary
#A381EC #ECD881 #95EC81
monochromatic
#5920D3 #7C4CE4 #A381EC #CAB6F4 #ECE4FB

Accessibility & contrast

On white

3.04
#A381EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#A381EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A381EC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A381EC#FFFFFF#000000##000000
##A381EC1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F94F0
Deuteranopia (green-blind)
#6693E9
Tritanopia (blue-blind)
#9395AB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a381ec;
/* rgb */ color: rgb(163, 129, 236);
/* oklch */ color: oklch(68.0% 0.156 296.7);
Tailwind
colors: {
  custom: {
    50: '#c1a6f2',
    500: '#a381ec',
    950: '#000000',
  },
}
SCSS
$custom: #a381ec;
$custom-light: #c1a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a381ec",
  "rgb": {
    "r": 163,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 259.065,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68044,
    "c": 0.15577,
    "h": 296.7
  },
  "luminance": 0.29543
}

Semantic roles & 50–950 ramp

primary
#A381EC
secondary
#E9F2D7
accent
#D61097
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #A381EC

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

Preview Lab → · Contrast checker → · Palette generator →

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