#A371FB#A371FB

#A371FB is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.3% C 0.198 H 297.4°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#A371FB
RGBrgb(163, 113, 251)
HSLhsl(262, 95%, 71%)
HSVhsv(262, 55%, 98%)
CMYKcmyk(35.1%, 55%, 0%, 1.6%)
CIE-LABlab(58.57, 48.28, -62.11)
CIE-LCHlch(58.57, 78.67, 307.86°)
OKLaboklab(66.31% 0.0914 -0.176)
OKLCHoklch(66.31% 0.198 297.4)
XYZxyz(38.4176, 26.5613, 94.3509)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371FB #C9FB71
analogous
#7184FB #A371FB #E871FB
triadic
#A371FB #FBA371 #71FBA3
tetradic
#A371FB #FB7184 #C9FB71 #71FBE8
square
#A371FB #FB7184 #C9FB71 #71FBE8
split-complementary
#A371FB #FBE871 #84FB71
monochromatic
#5907EB #7C35F9 #A371FB #CAADFD #ECE1FE

Accessibility & contrast

On white

3.33
#A371FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#A371FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371FB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371FB#FFFFFF#000000##000000
##A371FB1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#328DFF
Deuteranopia (green-blind)
#438BF8
Tritanopia (blue-blind)
#8F8DAB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a371fb;
/* rgb */ color: rgb(163, 113, 251);
/* oklch */ color: oklch(66.3% 0.198 297.4);
Tailwind
colors: {
  custom: {
    50: '#c39bfd',
    500: '#a371fb',
    950: '#000000',
  },
}
SCSS
$custom: #a371fb;
$custom-light: #c39bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a371fb",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 261.739,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.66306,
    "c": 0.1983,
    "h": 297.4
  },
  "luminance": 0.26562
}

Semantic roles & 50–950 ramp

primary
#A371FB
secondary
#E9F6D2
accent
#E60092
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A371FB

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

Preview Lab → · Contrast checker → · Palette generator →

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