#8A71C7#8A71C7

#8A71C7 is a mid, vivid violet. Relative luminance 0.213; OKLCH L 60.9% C 0.129 H 295.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A71C7
RGBrgb(138, 113, 199)
HSLhsl(257, 43%, 61%)
HSVhsv(257, 43%, 78%)
CMYKcmyk(30.7%, 43.2%, 0%, 22%)
CIE-LABlab(53.32, 28.66, -41.43)
CIE-LCHlch(53.32, 50.37, 304.67°)
OKLaboklab(60.9% 0.056 -0.1162)
OKLCHoklch(60.9% 0.129 295.7)
XYZxyz(26.6926, 21.3367, 56.7338)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71C7 #AEC771
analogous
#7183C7 #8A71C7 #B571C7
triadic
#8A71C7 #C78A71 #71C78A
tetradic
#8A71C7 #C77183 #AEC771 #71C7B5
square
#8A71C7 #C77183 #AEC771 #71C7B5
split-complementary
#8A71C7 #C7B571 #83C771
monochromatic
#4E3688 #6747B4 #8A71C7 #AE9DD8 #D2C9EA

Accessibility & contrast

On white

3.99
#8A71C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8A71C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71C7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71C7#FFFFFF#000000##000000
##8A71C71.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5780CA
Deuteranopia (green-blind)
#5B7EC5
Tritanopia (blue-blind)
#7D8192
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a71c7;
/* rgb */ color: rgb(138, 113, 199);
/* oklch */ color: oklch(60.9% 0.129 295.7);
Tailwind
colors: {
  custom: {
    50: '#ae9ad8',
    500: '#8a71c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a71c7;
$custom-light: #ae9ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71c7",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 257.442,
    "s": 43.434,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60904,
    "c": 0.12894,
    "h": 295.7
  },
  "luminance": 0.21337
}

Semantic roles & 50–950 ramp

primary
#8A71C7
secondary
#D1DABA
accent
#B72F8F
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A71C7

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

Preview Lab → · Contrast checker → · Palette generator →

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