#8A71BA#8A71BA

#8A71BA is a mid, moderate violet. Relative luminance 0.208; OKLCH L 60.2% C 0.111 H 298.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A71BA
RGBrgb(138, 113, 186)
HSLhsl(261, 35%, 59%)
HSVhsv(261, 39%, 73%)
CMYKcmyk(25.8%, 39.2%, 0%, 27.1%)
CIE-LABlab(52.68, 25.36, -34.97)
CIE-LCHlch(52.68, 43.20, 305.95°)
OKLaboklab(60.22% 0.0536 -0.0974)
OKLCHoklch(60.22% 0.111 298.8)
XYZxyz(25.2473, 20.7585, 49.1215)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71BA #A1BA71
analogous
#717CBA #8A71BA #AE71BA
triadic
#8A71BA #BA8A71 #71BA8A
tetradic
#8A71BA #BA717C #A1BA71 #71BAAE
square
#8A71BA #BA717C #A1BA71 #71BAAE
split-complementary
#8A71BA #BAAE71 #7CBA71
monochromatic
#4F3A77 #6A4EA0 #8A71BA #AC9ACE #CEC3E2

Accessibility & contrast

On white

4.08
#8A71BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A71BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71BA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71BA#FFFFFF#000000##000000
##8A71BA1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E7EBD
Deuteranopia (green-blind)
#637DB8
Tritanopia (blue-blind)
#817D8D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a71ba;
/* rgb */ color: rgb(138, 113, 186);
/* oklch */ color: oklch(60.2% 0.111 298.8);
Tailwind
colors: {
  custom: {
    50: '#ad9acf',
    500: '#8a71ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a71ba;
$custom-light: #ad9acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71ba",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 260.548,
    "s": 34.597,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60219,
    "c": 0.11118,
    "h": 298.8
  },
  "luminance": 0.20759
}

Semantic roles & 50–950 ramp

primary
#8A71BA
secondary
#C8D2B5
accent
#CB5DA5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A71BA

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

Preview Lab → · Contrast checker → · Palette generator →

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