#A371F0#A371F0

#A371F0 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.6% C 0.185 H 299.4°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A371F0
RGBrgb(163, 113, 240)
HSLhsl(264, 81%, 69%)
HSVhsv(264, 53%, 94%)
CMYKcmyk(32.1%, 52.9%, 0%, 5.9%)
CIE-LABlab(57.93, 45.54, -57.04)
CIE-LCHlch(57.93, 72.99, 308.60°)
OKLaboklab(65.63% 0.091 -0.1611)
OKLCHoklch(65.63% 0.185 299.4)
XYZxyz(36.7338, 25.8878, 85.4827)
Luminance0.2589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371F0 #BEF071
analogous
#717FF0 #A371F0 #E371F0
triadic
#A371F0 #F0A371 #71F0A3
tetradic
#A371F0 #F0717F #BEF071 #71F0E3
square
#A371F0 #F0717F #BEF071 #71F0E3
split-complementary
#A371F0 #F0E371 #7FF071
monochromatic
#5F16D1 #7F3AEA #A371F0 #C7A8F6 #EBE0FC

Accessibility & contrast

On white

3.40
#A371F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#A371F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371F0
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371F0#FFFFFF#000000##000000
##A371F01.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#408BF4
Deuteranopia (green-blind)
#4F8AED
Tritanopia (blue-blind)
#938AA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a371f0;
/* rgb */ color: rgb(163, 113, 240);
/* oklch */ color: oklch(65.6% 0.185 299.4);
Tailwind
colors: {
  custom: {
    50: '#c29bf5',
    500: '#a371f0',
    950: '#000000',
  },
}
SCSS
$custom: #a371f0;
$custom-light: #c29bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a371f0",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 263.622,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.65632,
    "c": 0.18503,
    "h": 299.4
  },
  "luminance": 0.25888
}

Semantic roles & 50–950 ramp

primary
#A371F0
secondary
#E2F1CC
accent
#DD0889
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A371F0

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

Preview Lab → · Contrast checker → · Palette generator →

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