#8A71A2#8A71A2

#8A71A2 is a mid, moderate violet. Relative luminance 0.198; OKLCH L 59.1% C 0.078 H 307.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A71A2
RGBrgb(138, 113, 162)
HSLhsl(271, 21%, 54%)
HSVhsv(271, 30%, 64%)
CMYKcmyk(14.8%, 30.2%, 0%, 36.5%)
CIE-LABlab(51.64, 19.62, -22.69)
CIE-LCHlch(51.64, 30.00, 310.85°)
OKLaboklab(59.08% 0.0476 -0.0622)
OKLCHoklch(59.08% 0.078 307.4)
XYZxyz(22.9067, 19.8223, 36.7948)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71A2 #89A271
analogous
#7271A2 #8A71A2 #A271A2
triadic
#8A71A2 #A28A71 #71A28A
tetradic
#8A71A2 #A27271 #89A271 #71A2A2
square
#8A71A2 #A27271 #89A271 #71A2A2
split-complementary
#8A71A2 #A2A271 #71A272
monochromatic
#4D3C5C #6B5581 #8A71A2 #A896BA #C7BBD2

Accessibility & contrast

On white

4.23
#8A71A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#8A71A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71A2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71A2#FFFFFF#000000##000000
##8A71A21.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#687AA4
Deuteranopia (green-blind)
#6D7BA1
Tritanopia (blue-blind)
#877883
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a71a2;
/* rgb */ color: rgb(138, 113, 162);
/* oklch */ color: oklch(59.1% 0.078 307.4);
Tailwind
colors: {
  custom: {
    50: '#ac9abd',
    500: '#8a71a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a71a2;
$custom-light: #ac9abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71a2",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 270.612,
    "s": 20.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59075,
    "c": 0.07838,
    "h": 307.4
  },
  "luminance": 0.19822
}

Semantic roles & 50–950 ramp

primary
#8A71A2
secondary
#B7C2AD
accent
#BD6A93
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100E12
muted
#7F7E81

Preview Lab

Preview with #8A71A2

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

Preview Lab → · Contrast checker → · Palette generator →

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