#A371F7#A371F7

#A371F7 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.1% C 0.193 H 298.1°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A371F7
RGBrgb(163, 113, 247)
HSLhsl(262, 89%, 71%)
HSVhsv(262, 54%, 97%)
CMYKcmyk(34%, 54.3%, 0%, 3.1%)
CIE-LABlab(58.33, 47.28, -60.28)
CIE-LCHlch(58.33, 76.61, 308.11°)
OKLaboklab(66.06% 0.0913 -0.1706)
OKLCHoklch(66.06% 0.193 298.1)
XYZxyz(37.7937, 26.3117, 91.0652)
Luminance0.2631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371F7 #C5F771
analogous
#7182F7 #A371F7 #E671F7
triadic
#A371F7 #F7A371 #71F7A3
tetradic
#A371F7 #F77182 #C5F771 #71F7E6
square
#A371F7 #F77182 #C5F771 #71F7E6
split-complementary
#A371F7 #F7E671 #82F771
monochromatic
#5C0DE1 #7D37F4 #A371F7 #C9ABFA #ECE2FD

Accessibility & contrast

On white

3.35
#A371F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#A371F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371F7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371F7#FFFFFF#000000##000000
##A371F71.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#388CFC
Deuteranopia (green-blind)
#488BF4
Tritanopia (blue-blind)
#908CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a371f7;
/* rgb */ color: rgb(163, 113, 247);
/* oklch */ color: oklch(66.1% 0.193 298.1);
Tailwind
colors: {
  custom: {
    50: '#c29bfa',
    500: '#a371f7',
    950: '#000000',
  },
}
SCSS
$custom: #a371f7;
$custom-light: #c29bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a371f7",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 262.388,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66058,
    "c": 0.19349,
    "h": 298.1
  },
  "luminance": 0.26312
}

Semantic roles & 50–950 ramp

primary
#A371F7
secondary
#E7F4D0
accent
#E60090
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A371F7

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

Preview Lab → · Contrast checker → · Palette generator →

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