#8A71BC#8A71BC

#8A71BC is a mid, moderate violet. Relative luminance 0.208; OKLCH L 60.3% C 0.114 H 298.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A71BC
RGBrgb(138, 113, 188)
HSLhsl(260, 36%, 59%)
HSVhsv(260, 40%, 74%)
CMYKcmyk(26.6%, 39.9%, 0%, 26.3%)
CIE-LABlab(52.78, 25.86, -35.97)
CIE-LCHlch(52.78, 44.30, 305.71°)
OKLaboklab(60.32% 0.054 -0.1003)
OKLCHoklch(60.32% 0.114 298.3)
XYZxyz(25.4614, 20.8442, 50.2491)
Luminance0.2084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71BC #A3BC71
analogous
#717EBC #8A71BC #B071BC
triadic
#8A71BC #BC8A71 #71BC8A
tetradic
#8A71BC #BC717E #A3BC71 #71BCB0
square
#8A71BC #BC717E #A3BC71 #71BCB0
split-complementary
#8A71BC #BCB071 #7EBC71
monochromatic
#4F3979 #6A4DA3 #8A71BC #AC9BD0 #CFC4E3

Accessibility & contrast

On white

4.06
#8A71BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8A71BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71BC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71BC#FFFFFF#000000##000000
##8A71BC1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7EBF
Deuteranopia (green-blind)
#617DBA
Tritanopia (blue-blind)
#807E8D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a71bc;
/* rgb */ color: rgb(138, 113, 188);
/* oklch */ color: oklch(60.3% 0.114 298.3);
Tailwind
colors: {
  custom: {
    50: '#ae9ad0',
    500: '#8a71bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a71bc;
$custom-light: #ae9ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71bc",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 260,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60322,
    "c": 0.11392,
    "h": 298.3
  },
  "luminance": 0.20844
}

Semantic roles & 50–950 ramp

primary
#8A71BC
secondary
#C9D3B6
accent
#CC5CA7
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A71BC

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

Preview Lab → · Contrast checker → · Palette generator →

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