#8A71AA#8A71AA

#8A71AA is a mid, moderate violet. Relative luminance 0.201; OKLCH L 59.4% C 0.089 H 303.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A71AA
RGBrgb(138, 113, 170)
HSLhsl(266, 25%, 55%)
HSVhsv(266, 34%, 67%)
CMYKcmyk(18.8%, 33.5%, 0%, 33.3%)
CIE-LABlab(51.97, 21.48, -26.84)
CIE-LCHlch(51.97, 34.37, 308.67°)
OKLaboklab(59.44% 0.0498 -0.074)
OKLCHoklch(59.44% 0.089 303.9)
XYZxyz(23.6406, 20.1159, 40.6597)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71AA #91AA71
analogous
#7174AA #8A71AA #A671AA
triadic
#8A71AA #AA8A71 #71AA8A
tetradic
#8A71AA #AA7174 #91AA71 #71AAA6
square
#8A71AA #AA7174 #91AA71 #71AAA6
split-complementary
#8A71AA #AAA671 #74AA71
monochromatic
#4E3C64 #6B538B #8A71AA #AA97C1 #C9BED8

Accessibility & contrast

On white

4.18
#8A71AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8A71AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71AA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71AA#FFFFFF#000000##000000
##8A71AA1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#657BAC
Deuteranopia (green-blind)
#6A7CA8
Tritanopia (blue-blind)
#857A86
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a71aa;
/* rgb */ color: rgb(138, 113, 170);
/* oklch */ color: oklch(59.4% 0.089 303.9);
Tailwind
colors: {
  custom: {
    50: '#ad9ac3',
    500: '#8a71aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a71aa;
$custom-light: #ad9ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71aa",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 170
  },
  "hsl": {
    "h": 266.316,
    "s": 25.11,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59439,
    "c": 0.08924,
    "h": 303.9
  },
  "luminance": 0.20116
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A71AA

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

Preview Lab → · Contrast checker → · Palette generator →

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