#8A71BE#8A71BE

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

Color values

HEX#8A71BE
RGBrgb(138, 113, 190)
HSLhsl(259, 37%, 59%)
HSVhsv(259, 41%, 75%)
CMYKcmyk(27.4%, 40.5%, 0%, 25.5%)
CIE-LABlab(52.87, 26.36, -36.97)
CIE-LCHlch(52.87, 45.41, 305.49°)
OKLaboklab(60.43% 0.0544 -0.1032)
OKLCHoklch(60.43% 0.117 297.8)
XYZxyz(25.6784, 20.9310, 51.3925)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71BE #A5BE71
analogous
#717FBE #8A71BE #B171BE
triadic
#8A71BE #BE8A71 #71BE8A
tetradic
#8A71BE #BE717F #A5BE71 #71BEB1
square
#8A71BE #BE717F #A5BE71 #71BEB1
split-complementary
#8A71BE #BEB171 #7FBE71
monochromatic
#4F397C #694CA6 #8A71BE #AD9BD1 #CFC5E4

Accessibility & contrast

On white

4.05
#8A71BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A71BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71BE
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71BE#FFFFFF#000000##000000
##8A71BE1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7EC1
Deuteranopia (green-blind)
#607DBC
Tritanopia (blue-blind)
#807E8E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a71be;
/* rgb */ color: rgb(138, 113, 190);
/* oklch */ color: oklch(60.4% 0.117 297.8);
Tailwind
colors: {
  custom: {
    50: '#ae9ad2',
    500: '#8a71be',
    950: '#000000',
  },
}
SCSS
$custom: #8a71be;
$custom-light: #ae9ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71be",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 259.481,
    "s": 37.198,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.11665,
    "h": 297.8
  },
  "luminance": 0.20931
}

Semantic roles & 50–950 ramp

primary
#8A71BE
secondary
#CBD4B6
accent
#CD5BA8
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A71BE

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

Preview Lab → · Contrast checker → · Palette generator →

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