#8A71AD#8A71AD

#8A71AD is a mid, moderate violet. Relative luminance 0.202; OKLCH L 59.6% C 0.093 H 302.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A71AD
RGBrgb(138, 113, 173)
HSLhsl(265, 27%, 56%)
HSVhsv(265, 35%, 68%)
CMYKcmyk(20.2%, 34.7%, 0%, 32.2%)
CIE-LABlab(52.10, 22.19, -28.38)
CIE-LCHlch(52.10, 36.02, 308.02°)
OKLaboklab(59.58% 0.0506 -0.0785)
OKLCHoklch(59.58% 0.093 302.8)
XYZxyz(23.9276, 20.2307, 42.1714)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71AD #94AD71
analogous
#7176AD #8A71AD #A871AD
triadic
#8A71AD #AD8A71 #71AD8A
tetradic
#8A71AD #AD7176 #94AD71 #71ADA8
square
#8A71AD #AD7176 #94AD71 #71ADA8
split-complementary
#8A71AD #ADA871 #76AD71
monochromatic
#4E3C68 #6B528F #8A71AD #AA98C3 #CABFDA

Accessibility & contrast

On white

4.16
#8A71AD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A71AD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71AD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71AD#FFFFFF#000000##000000
##8A71AD1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#647CAF
Deuteranopia (green-blind)
#697CAB
Tritanopia (blue-blind)
#847A87
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a71ad;
/* rgb */ color: rgb(138, 113, 173);
/* oklch */ color: oklch(59.6% 0.093 302.8);
Tailwind
colors: {
  custom: {
    50: '#ad9ac5',
    500: '#8a71ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a71ad;
$custom-light: #ad9ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71ad",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 173
  },
  "hsl": {
    "h": 265,
    "s": 26.786,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5958,
    "c": 0.09335,
    "h": 302.8
  },
  "luminance": 0.20231
}

Semantic roles & 50–950 ramp

primary
#8A71AD
secondary
#BFC9B1
accent
#C3659C
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71AD

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

Preview Lab → · Contrast checker → · Palette generator →

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