#8A71BD#8A71BD

#8A71BD is a mid, moderate violet. Relative luminance 0.209; OKLCH L 60.4% C 0.115 H 298.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A71BD
RGBrgb(138, 113, 189)
HSLhsl(260, 37%, 59%)
HSVhsv(260, 40%, 74%)
CMYKcmyk(27%, 40.2%, 0%, 25.9%)
CIE-LABlab(52.83, 26.11, -36.47)
CIE-LCHlch(52.83, 44.85, 305.60°)
OKLaboklab(60.37% 0.0542 -0.1018)
OKLCHoklch(60.37% 0.115 298)
XYZxyz(25.5695, 20.8874, 50.8188)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71BD #A4BD71
analogous
#717EBD #8A71BD #B071BD
triadic
#8A71BD #BD8A71 #71BD8A
tetradic
#8A71BD #BD717E #A4BD71 #71BDB0
square
#8A71BD #BD717E #A4BD71 #71BDB0
split-complementary
#8A71BD #BDB071 #7EBD71
monochromatic
#4F397B #694CA4 #8A71BD #AC9BD0 #CFC5E4

Accessibility & contrast

On white

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

On black

5.18
#8A71BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71BD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71BD#FFFFFF#000000##000000
##8A71BD1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7EC0
Deuteranopia (green-blind)
#617DBB
Tritanopia (blue-blind)
#807E8E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a71bd;
/* rgb */ color: rgb(138, 113, 189);
/* oklch */ color: oklch(60.4% 0.115 298.0);
Tailwind
colors: {
  custom: {
    50: '#ae9ad1',
    500: '#8a71bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a71bd;
$custom-light: #ae9ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71bd",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 259.737,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60373,
    "c": 0.11529,
    "h": 298
  },
  "luminance": 0.20888
}

Semantic roles & 50–950 ramp

primary
#8A71BD
secondary
#CAD4B6
accent
#CD5BA7
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A71BD

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

Preview Lab → · Contrast checker → · Palette generator →

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