#8A71CC#8A71CC

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

Color values

HEX#8A71CC
RGBrgb(138, 113, 204)
HSLhsl(256, 47%, 62%)
HSVhsv(256, 45%, 80%)
CMYKcmyk(32.4%, 44.6%, 0%, 20%)
CIE-LABlab(53.57, 29.95, -43.87)
CIE-LCHlch(53.57, 53.12, 304.32°)
OKLaboklab(61.18% 0.0567 -0.1233)
OKLCHoklch(61.18% 0.136 294.7)
XYZxyz(27.2827, 21.5727, 59.8416)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71CC #B3CC71
analogous
#7185CC #8A71CC #B871CC
triadic
#8A71CC #CC8A71 #71CC8A
tetradic
#8A71CC #CC7185 #B3CC71 #71CCB8
square
#8A71CC #CC7185 #B3CC71 #71CCB8
split-complementary
#8A71CC #CCB871 #85CC71
monochromatic
#4D338F #6544BC #8A71CC #AF9EDC #D4CBEC

Accessibility & contrast

On white

3.95
#8A71CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8A71CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71CC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71CC#FFFFFF#000000##000000
##8A71CC1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5481CF
Deuteranopia (green-blind)
#587FCA
Tritanopia (blue-blind)
#7B8295
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a71cc;
/* rgb */ color: rgb(138, 113, 204);
/* oklch */ color: oklch(61.2% 0.136 294.7);
Tailwind
colors: {
  custom: {
    50: '#af9adc',
    500: '#8a71cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a71cc;
$custom-light: #af9adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71cc",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 256.484,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61179,
    "c": 0.13572,
    "h": 294.7
  },
  "luminance": 0.21573
}

Semantic roles & 50–950 ramp

primary
#8A71CC
secondary
#D4DDBC
accent
#BA2B93
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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