#8A71AF#8A71AF

#8A71AF is a mid, moderate violet. Relative luminance 0.203; OKLCH L 59.7% C 0.096 H 302.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A71AF
RGBrgb(138, 113, 175)
HSLhsl(264, 28%, 56%)
HSVhsv(264, 35%, 69%)
CMYKcmyk(21.1%, 35.4%, 0%, 31.4%)
CIE-LABlab(52.18, 22.67, -29.40)
CIE-LCHlch(52.18, 37.12, 307.63°)
OKLaboklab(59.68% 0.0511 -0.0814)
OKLCHoklch(59.68% 0.096 302.1)
XYZxyz(24.1226, 20.3087, 43.1983)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71AF #96AF71
analogous
#7177AF #8A71AF #A971AF
triadic
#8A71AF #AF8A71 #71AF8A
tetradic
#8A71AF #AF7177 #96AF71 #71AFA9
square
#8A71AF #AF7177 #96AF71 #71AFA9
split-complementary
#8A71AF #AFA971 #77AF71
monochromatic
#4E3C6A #6B5291 #8A71AF #AA98C5 #CBBFDB

Accessibility & contrast

On white

4.15
#8A71AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8A71AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71AF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71AF#FFFFFF#000000##000000
##8A71AF1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#637CB1
Deuteranopia (green-blind)
#687CAD
Tritanopia (blue-blind)
#847B88
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a71af;
/* rgb */ color: rgb(138, 113, 175);
/* oklch */ color: oklch(59.7% 0.096 302.1);
Tailwind
colors: {
  custom: {
    50: '#ad9ac7',
    500: '#8a71af',
    950: '#000000',
  },
}
SCSS
$custom: #8a71af;
$custom-light: #ad9ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71af",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 264.194,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59675,
    "c": 0.09609,
    "h": 302.1
  },
  "luminance": 0.20309
}

Semantic roles & 50–950 ramp

primary
#8A71AF
secondary
#C0CBB1
accent
#C4649D
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71AF

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

Preview Lab → · Contrast checker → · Palette generator →

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