#8A71D4#8A71D4

#8A71D4 is a mid, vivid violet. Relative luminance 0.220; OKLCH L 61.6% C 0.146 H 293.3°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A71D4
RGBrgb(138, 113, 212)
HSLhsl(255, 54%, 64%)
HSVhsv(255, 47%, 83%)
CMYKcmyk(34.9%, 46.7%, 0%, 16.9%)
CIE-LABlab(53.99, 32.06, -47.75)
CIE-LCHlch(53.99, 57.51, 303.88°)
OKLaboklab(61.63% 0.0578 -0.1346)
OKLCHoklch(61.63% 0.147 293.3)
XYZxyz(28.2669, 21.9664, 65.0252)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71D4 #BBD471
analogous
#7189D4 #8A71D4 #BC71D4
triadic
#8A71D4 #D48A71 #71D48A
tetradic
#8A71D4 #D47189 #BBD471 #71D4BC
square
#8A71D4 #D47189 #BBD471 #71D4BC
split-complementary
#8A71D4 #D4BC71 #89D471
monochromatic
#4A2F9C #6342C6 #8A71D4 #B1A0E2 #D7CFF0

Accessibility & contrast

On white

3.89
#8A71D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#8A71D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71D4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71D4#FFFFFF#000000##000000
##8A71D41.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F82D8
Deuteranopia (green-blind)
#527FD2
Tritanopia (blue-blind)
#788498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a71d4;
/* rgb */ color: rgb(138, 113, 212);
/* oklch */ color: oklch(61.6% 0.146 293.3);
Tailwind
colors: {
  custom: {
    50: '#af9ae2',
    500: '#8a71d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a71d4;
$custom-light: #af9ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71d4",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 255.152,
    "s": 53.514,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.1465,
    "h": 293.3
  },
  "luminance": 0.21967
}

Semantic roles & 50–950 ramp

primary
#8A71D4
secondary
#D9E2BF
accent
#C12599
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71D4

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

Preview Lab → · Contrast checker → · Palette generator →

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