#A381F7#A381F7

#A381F7 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.7% C 0.170 H 294.8°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#A381F7
RGBrgb(163, 129, 247)
HSLhsl(257, 88%, 74%)
HSVhsv(257, 48%, 97%)
CMYKcmyk(34%, 47.8%, 0%, 3.1%)
CIE-LABlab(61.83, 38.41, -54.69)
CIE-LCHlch(61.83, 66.84, 305.08°)
OKLaboklab(68.66% 0.0713 -0.1543)
OKLCHoklch(68.66% 0.17 294.8)
XYZxyz(39.7387, 30.2017, 91.7135)
Luminance0.3020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A381F7 #D5F781
analogous
#819AF7 #A381F7 #DE81F7
triadic
#A381F7 #F7A381 #81F7A3
tetradic
#A381F7 #F7819A #D5F781 #81F7DE
square
#A381F7 #F7819A #D5F781 #81F7DE
split-complementary
#A381F7 #F7DE81 #9AF781
monochromatic
#4F0FEE #7947F3 #A381F7 #CDBBFB #EAE2FD

Accessibility & contrast

On white

2.98
#A381F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#A381F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A381F7
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A381F7#FFFFFF#000000##000000
##A381F71.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5796FB
Deuteranopia (green-blind)
#5E94F4
Tritanopia (blue-blind)
#8F98B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a381f7;
/* rgb */ color: rgb(163, 129, 247);
/* oklch */ color: oklch(68.7% 0.170 294.8);
Tailwind
colors: {
  custom: {
    50: '#c2a6fa',
    500: '#a381f7',
    950: '#000000',
  },
}
SCSS
$custom: #a381f7;
$custom-light: #c2a6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a381f7",
  "rgb": {
    "r": 163,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 257.288,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68657,
    "c": 0.16995,
    "h": 294.8
  },
  "luminance": 0.30202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A381F7

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

Preview Lab → · Contrast checker → · Palette generator →

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