#8A71CF#8A71CF

#8A71CF is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.3% C 0.140 H 294.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A71CF
RGBrgb(138, 113, 207)
HSLhsl(256, 49%, 63%)
HSVhsv(256, 45%, 81%)
CMYKcmyk(33.3%, 45.4%, 0%, 18.8%)
CIE-LABlab(53.73, 30.74, -45.33)
CIE-LCHlch(53.73, 54.77, 304.14°)
OKLaboklab(61.35% 0.0572 -0.1275)
OKLCHoklch(61.35% 0.14 294.1)
XYZxyz(27.6460, 21.7180, 61.7548)
Luminance0.2172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71CF #B6CF71
analogous
#7187CF #8A71CF #B971CF
triadic
#8A71CF #CF8A71 #71CF8A
tetradic
#8A71CF #CF7187 #B6CF71 #71CFB9
square
#8A71CF #CF7187 #B6CF71 #71CFB9
split-complementary
#8A71CF #CFB971 #87CF71
monochromatic
#4C3294 #6443C0 #8A71CF #B09FDE #D5CCEE

Accessibility & contrast

On white

3.93
#8A71CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#8A71CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71CF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71CF#FFFFFF#000000##000000
##8A71CF1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5281D2
Deuteranopia (green-blind)
#567FCD
Tritanopia (blue-blind)
#7A8396
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a71cf;
/* rgb */ color: rgb(138, 113, 207);
/* oklch */ color: oklch(61.3% 0.140 294.1);
Tailwind
colors: {
  custom: {
    50: '#af9ade',
    500: '#8a71cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a71cf;
$custom-light: #af9ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71cf",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 255.957,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61348,
    "c": 0.13978,
    "h": 294.1
  },
  "luminance": 0.21719
}

Semantic roles & 50–950 ramp

primary
#8A71CF
secondary
#D6DFBD
accent
#BD2995
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71CF

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

Preview Lab → · Contrast checker → · Palette generator →

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