#8A71D3#8A71D3

#8A71D3 is a mid, vivid violet. Relative luminance 0.219; OKLCH L 61.6% C 0.145 H 293.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8A71D3
RGBrgb(138, 113, 211)
HSLhsl(255, 53%, 64%)
HSVhsv(255, 46%, 83%)
CMYKcmyk(34.6%, 46.4%, 0%, 17.3%)
CIE-LABlab(53.94, 31.79, -47.27)
CIE-LCHlch(53.94, 56.97, 303.93°)
OKLaboklab(61.58% 0.0577 -0.1332)
OKLCHoklch(61.58% 0.145 293.4)
XYZxyz(28.1412, 21.9161, 64.3630)
Luminance0.2192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71D3 #BAD371
analogous
#7189D3 #8A71D3 #BB71D3
triadic
#8A71D3 #D38A71 #71D38A
tetradic
#8A71D3 #D37189 #BAD371 #71D3BB
square
#8A71D3 #D37189 #BAD371 #71D3BB
split-complementary
#8A71D3 #D3BB71 #89D371
monochromatic
#4B309A #6442C5 #8A71D3 #B0A0E1 #D7CEF0

Accessibility & contrast

On white

3.90
#8A71D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#8A71D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71D3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71D3#FFFFFF#000000##000000
##8A71D31.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F82D7
Deuteranopia (green-blind)
#537FD1
Tritanopia (blue-blind)
#798498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a71d3;
/* rgb */ color: rgb(138, 113, 211);
/* oklch */ color: oklch(61.6% 0.145 293.4);
Tailwind
colors: {
  custom: {
    50: '#af9ae1',
    500: '#8a71d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a71d3;
$custom-light: #af9ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71d3",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 211
  },
  "hsl": {
    "h": 255.306,
    "s": 52.688,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61575,
    "c": 0.14516,
    "h": 293.4
  },
  "luminance": 0.21917
}

Semantic roles & 50–950 ramp

primary
#8A71D3
secondary
#D8E1BF
accent
#C02599
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71D3

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

Preview Lab → · Contrast checker → · Palette generator →

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