#A871F8#A871F8

#A871F8 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.6% C 0.195 H 299.9°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A871F8
RGBrgb(168, 113, 248)
HSLhsl(264, 91%, 71%)
HSVhsv(264, 54%, 97%)
CMYKcmyk(32.3%, 54.4%, 0%, 2.7%)
CIE-LABlab(58.89, 48.71, -59.90)
CIE-LCHlch(58.89, 77.21, 309.12°)
OKLaboklab(66.61% 0.0975 -0.1694)
OKLCHoklch(66.61% 0.195 299.9)
XYZxyz(38.9928, 26.9121, 91.9290)
Luminance0.2691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871F8 #C1F871
analogous
#717DF8 #A871F8 #EB71F8
triadic
#A871F8 #F8A871 #71F8A8
tetradic
#A871F8 #F8717D #C1F871 #71F8EB
square
#A871F8 #F8717D #C1F871 #71F8EB
split-complementary
#A871F8 #F8EB71 #7DF871
monochromatic
#630BE3 #8437F5 #A871F8 #CCABFB #EDE2FE

Accessibility & contrast

On white

3.29
#A871F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#A871F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871F8
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871F8#FFFFFF#000000##000000
##A871F81.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#398DFD
Deuteranopia (green-blind)
#4C8DF5
Tritanopia (blue-blind)
#978CAA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a871f8;
/* rgb */ color: rgb(168, 113, 248);
/* oklch */ color: oklch(66.6% 0.195 299.9);
Tailwind
colors: {
  custom: {
    50: '#c69bfb',
    500: '#a871f8',
    950: '#000000',
  },
}
SCSS
$custom: #a871f8;
$custom-light: #c69bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#a871f8",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 264.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66606,
    "c": 0.19544,
    "h": 299.9
  },
  "luminance": 0.26912
}

Semantic roles & 50–950 ramp

primary
#A871F8
secondary
#E6F5D0
accent
#E60088
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A871F8

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

Preview Lab → · Contrast checker → · Palette generator →

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