#8A71B5#8A71B5

#8A71B5 is a mid, moderate violet. Relative luminance 0.205; OKLCH L 60.0% C 0.104 H 300.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A71B5
RGBrgb(138, 113, 181)
HSLhsl(262, 31%, 58%)
HSVhsv(262, 38%, 71%)
CMYKcmyk(23.8%, 37.6%, 0%, 29%)
CIE-LABlab(52.45, 24.12, -32.45)
CIE-LCHlch(52.45, 40.44, 306.63°)
OKLaboklab(59.97% 0.0525 -0.0902)
OKLCHoklch(59.97% 0.104 300.2)
XYZxyz(24.7250, 20.5496, 46.3710)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71B5 #9CB571
analogous
#717AB5 #8A71B5 #AC71B5
triadic
#8A71B5 #B58A71 #71B58A
tetradic
#8A71B5 #B5717A #9CB571 #71B5AC
square
#8A71B5 #B5717A #9CB571 #71B5AC
split-complementary
#8A71B5 #B5AC71 #7AB571
monochromatic
#4F3B71 #6B5099 #8A71B5 #AB99CA #CCC1DF

Accessibility & contrast

On white

4.11
#8A71B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A71B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71B5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71B5#FFFFFF#000000##000000
##8A71B51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#607DB8
Deuteranopia (green-blind)
#657DB3
Tritanopia (blue-blind)
#827C8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a71b5;
/* rgb */ color: rgb(138, 113, 181);
/* oklch */ color: oklch(60.0% 0.104 300.2);
Tailwind
colors: {
  custom: {
    50: '#ad9acb',
    500: '#8a71b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a71b5;
$custom-light: #ad9acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71b5",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 181
  },
  "hsl": {
    "h": 262.059,
    "s": 31.481,
    "l": 57.647
  },
  "oklch": {
    "l": 0.59968,
    "c": 0.10432,
    "h": 300.2
  },
  "luminance": 0.2055
}

Semantic roles & 50–950 ramp

primary
#8A71B5
secondary
#C5CFB3
accent
#C860A2
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71B5

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

Preview Lab → · Contrast checker → · Palette generator →

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