#A381F5#A381F5

#A381F5 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.5% C 0.167 H 295.1°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#A381F5
RGBrgb(163, 129, 245)
HSLhsl(258, 85%, 73%)
HSVhsv(258, 47%, 96%)
CMYKcmyk(33.5%, 47.3%, 0%, 3.9%)
CIE-LABlab(61.72, 37.90, -53.76)
CIE-LCHlch(61.72, 65.78, 305.18°)
OKLaboklab(68.54% 0.0711 -0.1515)
OKLCHoklch(68.54% 0.167 295.1)
XYZxyz(39.4318, 30.0790, 90.0968)
Luminance0.3008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A381F5 #D3F581
analogous
#8199F5 #A381F5 #DD81F5
triadic
#A381F5 #F5A381 #81F5A3
tetradic
#A381F5 #F58199 #D3F581 #81F5DD
square
#A381F5 #F58199 #D3F581 #81F5DD
split-complementary
#A381F5 #F5DD81 #99F581
monochromatic
#5113E9 #7A48F0 #A381F5 #CCBAF9 #EAE3FD

Accessibility & contrast

On white

2.99
#A381F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#A381F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A381F5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A381F5#FFFFFF#000000##000000
##A381F51.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5996F9
Deuteranopia (green-blind)
#5F93F2
Tritanopia (blue-blind)
#9097AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a381f5;
/* rgb */ color: rgb(163, 129, 245);
/* oklch */ color: oklch(68.5% 0.167 295.1);
Tailwind
colors: {
  custom: {
    50: '#c1a6f9',
    500: '#a381f5',
    950: '#000000',
  },
}
SCSS
$custom: #a381f5;
$custom-light: #c1a6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#a381f5",
  "rgb": {
    "r": 163,
    "g": 129,
    "b": 245
  },
  "hsl": {
    "h": 257.586,
    "s": 85.294,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68544,
    "c": 0.16737,
    "h": 295.1
  },
  "luminance": 0.3008
}

Semantic roles & 50–950 ramp

primary
#A381F5
secondary
#ECF5D6
accent
#E204A1
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A381F5

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

Preview Lab → · Contrast checker → · Palette generator →

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