#8A71CE#8A71CE

#8A71CE is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.3% C 0.138 H 294.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A71CE
RGBrgb(138, 113, 206)
HSLhsl(256, 49%, 63%)
HSVhsv(256, 45%, 81%)
CMYKcmyk(33%, 45.1%, 0%, 19.2%)
CIE-LABlab(53.67, 30.48, -44.85)
CIE-LCHlch(53.67, 54.22, 304.20°)
OKLaboklab(61.29% 0.057 -0.1261)
OKLCHoklch(61.29% 0.138 294.3)
XYZxyz(27.5241, 21.6693, 61.1130)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71CE #B5CE71
analogous
#7187CE #8A71CE #B871CE
triadic
#8A71CE #CE8A71 #71CE8A
tetradic
#8A71CE #CE7187 #B5CE71 #71CEB8
square
#8A71CE #CE7187 #B5CE71 #71CEB8
split-complementary
#8A71CE #CEB871 #87CE71
monochromatic
#4C3292 #6544BE #8A71CE #AF9EDE #D5CCED

Accessibility & contrast

On white

3.94
#8A71CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#8A71CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71CE
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71CE#FFFFFF#000000##000000
##8A71CE1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5381D1
Deuteranopia (green-blind)
#577FCC
Tritanopia (blue-blind)
#7A8296
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a71ce;
/* rgb */ color: rgb(138, 113, 206);
/* oklch */ color: oklch(61.3% 0.138 294.3);
Tailwind
colors: {
  custom: {
    50: '#af9add',
    500: '#8a71ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a71ce;
$custom-light: #af9add;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71ce",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 256.129,
    "s": 48.691,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61291,
    "c": 0.13842,
    "h": 294.3
  },
  "luminance": 0.2167
}

Semantic roles & 50–950 ramp

primary
#8A71CE
secondary
#D5DEBC
accent
#BC2A95
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71CE

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

Preview Lab → · Contrast checker → · Palette generator →

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