#8A71FB#8A71FB

#8A71FB is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.1% C 0.197 H 287.8°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A71FB
RGBrgb(138, 113, 251)
HSLhsl(251, 95%, 71%)
HSVhsv(251, 55%, 98%)
CMYKcmyk(45%, 55%, 0%, 1.6%)
CIE-LABlab(56.26, 42.73, -65.93)
CIE-LCHlch(56.26, 78.57, 302.95°)
OKLaboklab(64.06% 0.0604 -0.188)
OKLCHoklch(64.06% 0.197 287.8)
XYZxyz(33.7940, 24.1772, 94.1341)
Luminance0.2418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71FB #E2FB71
analogous
#719DFB #8A71FB #CF71FB
triadic
#8A71FB #FB8A71 #71FB8A
tetradic
#8A71FB #FB719D #E2FB71 #71FBCF
square
#8A71FB #FB719D #E2FB71 #71FBCF
split-complementary
#8A71FB #FBCF71 #9DFB71
monochromatic
#3007EB #5935F9 #8A71FB #BBADFD #E6E1FE

Accessibility & contrast

On white

3.60
#8A71FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A71FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71FB
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71FB#FFFFFF#000000##000000
##8A71FB1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#218AFF
Deuteranopia (green-blind)
#2183F8
Tritanopia (blue-blind)
#668FAB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a71fb;
/* rgb */ color: rgb(138, 113, 251);
/* oklch */ color: oklch(64.1% 0.197 287.8);
Tailwind
colors: {
  custom: {
    50: '#b39afd',
    500: '#8a71fb',
    950: '#000000',
  },
}
SCSS
$custom: #8a71fb;
$custom-light: #b39afd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71fb",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 250.87,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6406,
    "c": 0.19744,
    "h": 287.8
  },
  "luminance": 0.24179
}

Semantic roles & 50–950 ramp

primary
#8A71FB
secondary
#EFF6D2
accent
#E600BC
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #8A71FB

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

Preview Lab → · Contrast checker → · Palette generator →

#8A71FB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva