#A371EF#A371EF

#A371EF is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.6% C 0.184 H 299.6°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#A371EF
RGBrgb(163, 113, 239)
HSLhsl(264, 80%, 69%)
HSVhsv(264, 53%, 94%)
CMYKcmyk(31.8%, 52.7%, 0%, 6.3%)
CIE-LABlab(57.87, 45.29, -56.57)
CIE-LCHlch(57.87, 72.47, 308.68°)
OKLaboklab(65.57% 0.0909 -0.1598)
OKLCHoklch(65.57% 0.184 299.6)
XYZxyz(36.5856, 25.8285, 84.7025)
Luminance0.2583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371EF #BDEF71
analogous
#717EEF #A371EF #E271EF
triadic
#A371EF #EFA371 #71EFA3
tetradic
#A371EF #EF717E #BDEF71 #71EFE2
square
#A371EF #EF717E #BDEF71 #71EFE2
split-complementary
#A371EF #EFE271 #7EEF71
monochromatic
#6017CE #7F3AE9 #A371EF #C7A8F5 #EADFFB

Accessibility & contrast

On white

3.41
#A371EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#A371EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371EF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371EF#FFFFFF#000000##000000
##A371EF1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#418BF3
Deuteranopia (green-blind)
#508AEC
Tritanopia (blue-blind)
#938AA5
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a371ef;
/* rgb */ color: rgb(163, 113, 239);
/* oklch */ color: oklch(65.6% 0.184 299.6);
Tailwind
colors: {
  custom: {
    50: '#c29bf5',
    500: '#a371ef',
    950: '#000000',
  },
}
SCSS
$custom: #a371ef;
$custom-light: #c29bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a371ef",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 263.81,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65572,
    "c": 0.18381,
    "h": 299.6
  },
  "luminance": 0.25829
}

Semantic roles & 50–950 ramp

primary
#A371EF
secondary
#E2F0CB
accent
#DC0988
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A371EF

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

Preview Lab → · Contrast checker → · Palette generator →

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