#A371F8#A371F8

#A371F8 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.195 H 298.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A371F8
RGBrgb(163, 113, 248)
HSLhsl(262, 91%, 71%)
HSVhsv(262, 54%, 97%)
CMYKcmyk(34.3%, 54.4%, 0%, 2.7%)
CIE-LABlab(58.39, 47.53, -60.74)
CIE-LCHlch(58.39, 77.12, 308.05°)
OKLaboklab(66.12% 0.0913 -0.172)
OKLCHoklch(66.12% 0.195 298)
XYZxyz(37.9485, 26.3736, 91.8800)
Luminance0.2637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371F8 #C6F871
analogous
#7182F8 #A371F8 #E671F8
triadic
#A371F8 #F8A371 #71F8A3
tetradic
#A371F8 #F87182 #C6F871 #71F8E6
square
#A371F8 #F87182 #C6F871 #71F8E6
split-complementary
#A371F8 #F8E671 #82F871
monochromatic
#5B0BE3 #7D37F5 #A371F8 #C9ABFB #ECE2FE

Accessibility & contrast

On white

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

On black

6.27
#A371F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371F8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371F8#FFFFFF#000000##000000
##A371F81.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#368DFD
Deuteranopia (green-blind)
#478BF5
Tritanopia (blue-blind)
#908CAA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a371f8;
/* rgb */ color: rgb(163, 113, 248);
/* oklch */ color: oklch(66.1% 0.195 298.0);
Tailwind
colors: {
  custom: {
    50: '#c29bfb',
    500: '#a371f8',
    950: '#000000',
  },
}
SCSS
$custom: #a371f8;
$custom-light: #c29bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#a371f8",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 262.222,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66119,
    "c": 0.19469,
    "h": 298
  },
  "luminance": 0.26374
}

Semantic roles & 50–950 ramp

primary
#A371F8
secondary
#E7F5D0
accent
#E60091
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A371F8

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

Preview Lab → · Contrast checker → · Palette generator →

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