#8A71DF#8A71DF

#8A71DF is a light, vivid violet. Relative luminance 0.225; OKLCH L 62.3% C 0.161 H 291.5°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A71DF
RGBrgb(138, 113, 223)
HSLhsl(254, 63%, 66%)
HSVhsv(254, 49%, 87%)
CMYKcmyk(38.1%, 49.3%, 0%, 12.5%)
CIE-LABlab(54.60, 35.01, -52.99)
CIE-LCHlch(54.60, 63.51, 303.45°)
OKLaboklab(62.28% 0.059 -0.15)
OKLCHoklch(62.28% 0.161 291.5)
XYZxyz(29.7021, 22.5405, 72.5835)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71DF #C6DF71
analogous
#718FDF #8A71DF #C171DF
triadic
#8A71DF #DF8A71 #71DF8A
tetradic
#8A71DF #DF718F #C6DF71 #71DFC1
square
#8A71DF #DF718F #C6DF71 #71DFC1
split-complementary
#8A71DF #DFC171 #8FDF71
monochromatic
#4627AE #613FD4 #8A71DF #B3A3EA #DCD5F6

Accessibility & contrast

On white

3.81
#8A71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71DF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71DF#FFFFFF#000000##000000
##8A71DF1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4684E3
Deuteranopia (green-blind)
#4980DC
Tritanopia (blue-blind)
#74879E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a71df;
/* rgb */ color: rgb(138, 113, 223);
/* oklch */ color: oklch(62.3% 0.161 291.5);
Tailwind
colors: {
  custom: {
    50: '#b09ae9',
    500: '#8a71df',
    950: '#000000',
  },
}
SCSS
$custom: #8a71df;
$custom-light: #b09ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71df",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 253.636,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62282,
    "c": 0.16115,
    "h": 291.5
  },
  "luminance": 0.22541
}

Semantic roles & 50–950 ramp

primary
#8A71DF
secondary
#E0E8C4
accent
#CB1BA3
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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