#8A71CB#8A71CB

#8A71CB is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.1% C 0.134 H 294.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A71CB
RGBrgb(138, 113, 203)
HSLhsl(257, 46%, 62%)
HSVhsv(257, 44%, 80%)
CMYKcmyk(32%, 44.3%, 0%, 20.4%)
CIE-LABlab(53.52, 29.69, -43.39)
CIE-LCHlch(53.52, 52.57, 304.39°)
OKLaboklab(61.12% 0.0566 -0.1219)
OKLCHoklch(61.12% 0.134 294.9)
XYZxyz(27.1632, 21.5249, 59.2119)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71CB #B2CB71
analogous
#7185CB #8A71CB #B771CB
triadic
#8A71CB #CB8A71 #71CB8A
tetradic
#8A71CB #CB7185 #B2CB71 #71CBB7
square
#8A71CB #CB7185 #B2CB71 #71CBB7
split-complementary
#8A71CB #CBB771 #85CB71
monochromatic
#4D348E #6544BB #8A71CB #AF9EDB #D4CBEC

Accessibility & contrast

On white

3.96
#8A71CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8A71CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71CB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71CB#FFFFFF#000000##000000
##8A71CB1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5581CE
Deuteranopia (green-blind)
#597FC9
Tritanopia (blue-blind)
#7B8294
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a71cb;
/* rgb */ color: rgb(138, 113, 203);
/* oklch */ color: oklch(61.1% 0.134 294.9);
Tailwind
colors: {
  custom: {
    50: '#af9adb',
    500: '#8a71cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a71cb;
$custom-light: #af9adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71cb",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 256.667,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61124,
    "c": 0.13437,
    "h": 294.9
  },
  "luminance": 0.21525
}

Semantic roles & 50–950 ramp

primary
#8A71CB
secondary
#D3DCBB
accent
#BA2C92
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71CB

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

Preview Lab → · Contrast checker → · Palette generator →

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