#8A71CD#8A71CD

#8A71CD is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.2% C 0.137 H 294.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A71CD
RGBrgb(138, 113, 205)
HSLhsl(256, 48%, 62%)
HSVhsv(256, 45%, 80%)
CMYKcmyk(32.7%, 44.9%, 0%, 19.6%)
CIE-LABlab(53.62, 30.21, -44.36)
CIE-LCHlch(53.62, 53.67, 304.26°)
OKLaboklab(61.23% 0.0569 -0.1247)
OKLCHoklch(61.23% 0.137 294.5)
XYZxyz(27.4030, 21.6208, 60.4753)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71CD #B4CD71
analogous
#7186CD #8A71CD #B871CD
triadic
#8A71CD #CD8A71 #71CD8A
tetradic
#8A71CD #CD7186 #B4CD71 #71CDB8
square
#8A71CD #CD7186 #B4CD71 #71CDB8
split-complementary
#8A71CD #CDB871 #86CD71
monochromatic
#4C3391 #6544BD #8A71CD #AF9EDD #D5CCED

Accessibility & contrast

On white

3.94
#8A71CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8A71CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71CD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71CD#FFFFFF#000000##000000
##8A71CD1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5381D0
Deuteranopia (green-blind)
#577FCB
Tritanopia (blue-blind)
#7B8295
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a71cd;
/* rgb */ color: rgb(138, 113, 205);
/* oklch */ color: oklch(61.2% 0.137 294.5);
Tailwind
colors: {
  custom: {
    50: '#af9add',
    500: '#8a71cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a71cd;
$custom-light: #af9add;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71cd",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 256.304,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61235,
    "c": 0.13707,
    "h": 294.5
  },
  "luminance": 0.21621
}

Semantic roles & 50–950 ramp

primary
#8A71CD
secondary
#D5DEBC
accent
#BB2A94
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71CD

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

Preview Lab → · Contrast checker → · Palette generator →

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