#8A71B0#8A71B0

#8A71B0 is a mid, moderate violet. Relative luminance 0.203; OKLCH L 59.7% C 0.097 H 301.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A71B0
RGBrgb(138, 113, 176)
HSLhsl(264, 29%, 57%)
HSVhsv(264, 36%, 69%)
CMYKcmyk(21.6%, 35.8%, 0%, 31%)
CIE-LABlab(52.23, 22.91, -29.91)
CIE-LCHlch(52.23, 37.68, 307.45°)
OKLaboklab(59.72% 0.0513 -0.0828)
OKLCHoklch(59.72% 0.097 301.8)
XYZxyz(24.2212, 20.3481, 43.7174)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71B0 #97B071
analogous
#7178B0 #8A71B0 #AA71B0
triadic
#8A71B0 #B08A71 #71B08A
tetradic
#8A71B0 #B07178 #97B071 #71B0AA
square
#8A71B0 #B07178 #97B071 #71B0AA
split-complementary
#8A71B0 #B0AA71 #78B071
monochromatic
#4E3C6B #6B5192 #8A71B0 #AA98C6 #CBC0DC

Accessibility & contrast

On white

4.14
#8A71B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8A71B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71B0
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71B0#FFFFFF#000000##000000
##8A71B01.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#637CB2
Deuteranopia (green-blind)
#677CAE
Tritanopia (blue-blind)
#837B88
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a71b0;
/* rgb */ color: rgb(138, 113, 176);
/* oklch */ color: oklch(59.7% 0.097 301.8);
Tailwind
colors: {
  custom: {
    50: '#ad9ac8',
    500: '#8a71b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a71b0;
$custom-light: #ad9ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71b0",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 176
  },
  "hsl": {
    "h": 263.81,
    "s": 28.507,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59723,
    "c": 0.09746,
    "h": 301.8
  },
  "luminance": 0.20348
}

Semantic roles & 50–950 ramp

primary
#8A71B0
secondary
#C1CBB2
accent
#C5639E
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71B0

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

Preview Lab → · Contrast checker → · Palette generator →

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