#8A71B1#8A71B1

#8A71B1 is a mid, moderate violet. Relative luminance 0.204; OKLCH L 59.8% C 0.099 H 301.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A71B1
RGBrgb(138, 113, 177)
HSLhsl(263, 29%, 57%)
HSVhsv(263, 36%, 69%)
CMYKcmyk(22%, 36.2%, 0%, 30.6%)
CIE-LABlab(52.27, 23.15, -30.42)
CIE-LCHlch(52.27, 38.23, 307.27°)
OKLaboklab(59.77% 0.0516 -0.0843)
OKLCHoklch(59.77% 0.099 301.4)
XYZxyz(24.3205, 20.3878, 44.2404)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71B1 #98B171
analogous
#7178B1 #8A71B1 #AA71B1
triadic
#8A71B1 #B18A71 #71B18A
tetradic
#8A71B1 #B17178 #98B171 #71B1AA
square
#8A71B1 #B17178 #98B171 #71B1AA
split-complementary
#8A71B1 #B1AA71 #78B171
monochromatic
#4E3B6C #6B5194 #8A71B1 #AB99C7 #CBC0DC

Accessibility & contrast

On white

4.14
#8A71B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8A71B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71B1
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71B1#FFFFFF#000000##000000
##8A71B11.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#627CB3
Deuteranopia (green-blind)
#677CAF
Tritanopia (blue-blind)
#837B89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a71b1;
/* rgb */ color: rgb(138, 113, 177);
/* oklch */ color: oklch(59.8% 0.099 301.4);
Tailwind
colors: {
  custom: {
    50: '#ad9ac8',
    500: '#8a71b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a71b1;
$custom-light: #ad9ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71b1",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 177
  },
  "hsl": {
    "h": 263.438,
    "s": 29.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59772,
    "c": 0.09883,
    "h": 301.4
  },
  "luminance": 0.20388
}

Semantic roles & 50–950 ramp

primary
#8A71B1
secondary
#C2CCB2
accent
#C5629F
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71B1

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

Preview Lab → · Contrast checker → · Palette generator →

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