#8A71CA#8A71CA

#8A71CA is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.1% C 0.133 H 295.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A71CA
RGBrgb(138, 113, 202)
HSLhsl(257, 46%, 62%)
HSVhsv(257, 44%, 79%)
CMYKcmyk(31.7%, 44.1%, 0%, 20.8%)
CIE-LABlab(53.47, 29.43, -42.90)
CIE-LCHlch(53.47, 52.02, 304.45°)
OKLaboklab(61.07% 0.0564 -0.1204)
OKLCHoklch(61.07% 0.133 295.1)
XYZxyz(27.0444, 21.4774, 58.5864)
Luminance0.2148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71CA #B1CA71
analogous
#7185CA #8A71CA #B771CA
triadic
#8A71CA #CA8A71 #71CA8A
tetradic
#8A71CA #CA7185 #B1CA71 #71CAB7
square
#8A71CA #CA7185 #B1CA71 #71CAB7
split-complementary
#8A71CA #CAB771 #85CA71
monochromatic
#4D348C #6645B9 #8A71CA #AF9EDB #D3CAEB

Accessibility & contrast

On white

3.97
#8A71CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8A71CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71CA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71CA#FFFFFF#000000##000000
##8A71CA1.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5580CD
Deuteranopia (green-blind)
#597EC8
Tritanopia (blue-blind)
#7C8194
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a71ca;
/* rgb */ color: rgb(138, 113, 202);
/* oklch */ color: oklch(61.1% 0.133 295.1);
Tailwind
colors: {
  custom: {
    50: '#ae9ada',
    500: '#8a71ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a71ca;
$custom-light: #ae9ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71ca",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 256.854,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61069,
    "c": 0.13302,
    "h": 295.1
  },
  "luminance": 0.21478
}

Semantic roles & 50–950 ramp

primary
#8A71CA
secondary
#D3DCBB
accent
#B92D91
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A71CA

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

Preview Lab → · Contrast checker → · Palette generator →

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