#A371DF#A371DF

#A371DF is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.6% C 0.164 H 303.1°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A371DF
RGBrgb(163, 113, 223)
HSLhsl(267, 63%, 66%)
HSVhsv(267, 49%, 87%)
CMYKcmyk(26.9%, 49.3%, 0%, 12.5%)
CIE-LABlab(57.00, 41.40, -49.02)
CIE-LCHlch(57.00, 64.17, 310.18°)
OKLaboklab(64.64% 0.0897 -0.1377)
OKLCHoklch(64.64% 0.164 303.1)
XYZxyz(34.3257, 24.9245, 72.8003)
Luminance0.2492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A371DF #ADDF71
analogous
#7176DF #A371DF #DA71DF
triadic
#A371DF #DFA371 #71DFA3
tetradic
#A371DF #DF7176 #ADDF71 #71DFDA
square
#A371DF #DF7176 #ADDF71 #71DFDA
split-complementary
#A371DF #DFDA71 #76DF71
monochromatic
#6527AE #833FD4 #A371DF #C3A3EA #E4D5F6

Accessibility & contrast

On white

3.51
#A371DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#A371DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A371DF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A371DF#FFFFFF#000000##000000
##A371DF1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F88E3
Deuteranopia (green-blind)
#5D89DC
Tritanopia (blue-blind)
#98859E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a371df;
/* rgb */ color: rgb(163, 113, 223);
/* oklch */ color: oklch(64.6% 0.164 303.1);
Tailwind
colors: {
  custom: {
    50: '#c19be9',
    500: '#a371df',
    950: '#000000',
  },
}
SCSS
$custom: #a371df;
$custom-light: #c19be9;
$custom-dark: #000000;
JSON
{
  "hex": "#a371df",
  "rgb": {
    "r": 163,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 267.273,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64642,
    "c": 0.16431,
    "h": 303.1
  },
  "luminance": 0.24924
}

Semantic roles & 50–950 ramp

primary
#A371DF
secondary
#D8E8C4
accent
#CB1B7B
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A371DF

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

Preview Lab → · Contrast checker → · Palette generator →

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