#A371F5#A371F5

#A371F5 is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.9% C 0.191 H 298.5°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A371F5
RGBrgb(163, 113, 245)
HSLhsl(263, 87%, 70%)
HSVhsv(263, 54%, 96%)
CMYKcmyk(33.5%, 53.9%, 0%, 3.9%)
CIE-LABlab(58.22, 46.78, -59.35)
CIE-LCHlch(58.22, 75.57, 308.24°)
OKLaboklab(65.94% 0.0912 -0.1679)
OKLCHoklch(65.94% 0.191 298.5)
XYZxyz(37.4868, 26.1890, 89.4485)
Luminance0.2619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371F5 #C3F571
analogous
#7181F5 #A371F5 #E571F5
triadic
#A371F5 #F5A371 #71F5A3
tetradic
#A371F5 #F57181 #C3F571 #71F5E5
square
#A371F5 #F57181 #C3F571 #71F5E5
split-complementary
#A371F5 #F5E571 #81F571
monochromatic
#5D10DC #7E38F1 #A371F5 #C8AAF9 #ECE2FD

Accessibility & contrast

On white

3.37
#A371F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#A371F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371F5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371F5#FFFFFF#000000##000000
##A371F51.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8CF9
Deuteranopia (green-blind)
#4A8BF2
Tritanopia (blue-blind)
#918BA8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a371f5;
/* rgb */ color: rgb(163, 113, 245);
/* oklch */ color: oklch(65.9% 0.191 298.5);
Tailwind
colors: {
  custom: {
    50: '#c29bf9',
    500: '#a371f5',
    950: '#000000',
  },
}
SCSS
$custom: #a371f5;
$custom-light: #c29bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#a371f5",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 262.727,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65935,
    "c": 0.19108,
    "h": 298.5
  },
  "luminance": 0.26189
}

Semantic roles & 50–950 ramp

primary
#A371F5
secondary
#E5F3CF
accent
#E3028E
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A371F5

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

Preview Lab → · Contrast checker → · Palette generator →

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