#A371F6#A371F6

#A371F6 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.192 H 298.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A371F6
RGBrgb(163, 113, 246)
HSLhsl(263, 88%, 70%)
HSVhsv(263, 54%, 96%)
CMYKcmyk(33.7%, 54.1%, 0%, 3.5%)
CIE-LABlab(58.27, 47.03, -59.82)
CIE-LCHlch(58.27, 76.09, 308.18°)
OKLaboklab(66% 0.0912 -0.1693)
OKLCHoklch(66% 0.192 298.3)
XYZxyz(37.6398, 26.2502, 90.2547)
Luminance0.2625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371F6 #C4F671
analogous
#7182F6 #A371F6 #E571F6
triadic
#A371F6 #F6A371 #71F6A3
tetradic
#A371F6 #F67182 #C4F671 #71F6E5
square
#A371F6 #F67182 #C4F671 #71F6E5
split-complementary
#A371F6 #F6E571 #82F671
monochromatic
#5C0EDE #7E37F2 #A371F6 #C8ABFA #ECE2FD

Accessibility & contrast

On white

3.36
#A371F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#A371F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371F6
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371F6#FFFFFF#000000##000000
##A371F61.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#398CFA
Deuteranopia (green-blind)
#498BF3
Tritanopia (blue-blind)
#918CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a371f6;
/* rgb */ color: rgb(163, 113, 246);
/* oklch */ color: oklch(66.0% 0.192 298.3);
Tailwind
colors: {
  custom: {
    50: '#c29bfa',
    500: '#a371f6',
    950: '#000000',
  },
}
SCSS
$custom: #a371f6;
$custom-light: #c29bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a371f6",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 262.556,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65996,
    "c": 0.19228,
    "h": 298.3
  },
  "luminance": 0.26251
}

Semantic roles & 50–950 ramp

primary
#A371F6
secondary
#E6F4CF
accent
#E5018F
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A371F6

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

Preview Lab → · Contrast checker → · Palette generator →

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