#8A71AB#8A71AB

#8A71AB is a mid, moderate violet. Relative luminance 0.202; OKLCH L 59.5% C 0.091 H 303.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A71AB
RGBrgb(138, 113, 171)
HSLhsl(266, 26%, 56%)
HSVhsv(266, 34%, 67%)
CMYKcmyk(19.3%, 33.9%, 0%, 32.9%)
CIE-LABlab(52.01, 21.71, -27.35)
CIE-LCHlch(52.01, 34.92, 308.45°)
OKLaboklab(59.49% 0.0501 -0.0755)
OKLCHoklch(59.49% 0.091 303.6)
XYZxyz(23.7355, 20.1538, 41.1598)
Luminance0.2015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71AB #92AB71
analogous
#7175AB #8A71AB #A771AB
triadic
#8A71AB #AB8A71 #71AB8A
tetradic
#8A71AB #AB7175 #92AB71 #71ABA7
square
#8A71AB #AB7175 #92AB71 #71ABA7
split-complementary
#8A71AB #ABA771 #75AB71
monochromatic
#4E3C66 #6B538C #8A71AB #AA97C2 #C9BED8

Accessibility & contrast

On white

4.17
#8A71AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A71AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71AB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71AB#FFFFFF#000000##000000
##8A71AB1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#657BAD
Deuteranopia (green-blind)
#697CA9
Tritanopia (blue-blind)
#857A86
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a71ab;
/* rgb */ color: rgb(138, 113, 171);
/* oklch */ color: oklch(59.5% 0.091 303.6);
Tailwind
colors: {
  custom: {
    50: '#ad9ac4',
    500: '#8a71ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a71ab;
$custom-light: #ad9ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71ab",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 265.862,
    "s": 25.664,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59485,
    "c": 0.09061,
    "h": 303.6
  },
  "luminance": 0.20154
}

Semantic roles & 50–950 ramp

primary
#8A71AB
secondary
#BEC8B0
accent
#C2669A
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E12
muted
#7F7E81

Preview Lab

Preview with #8A71AB

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

Preview Lab → · Contrast checker → · Palette generator →

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