#8A71B4#8A71B4

#8A71B4 is a mid, moderate violet. Relative luminance 0.205; OKLCH L 59.9% C 0.103 H 300.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A71B4
RGBrgb(138, 113, 180)
HSLhsl(262, 31%, 57%)
HSVhsv(262, 37%, 71%)
CMYKcmyk(23.3%, 37.2%, 0%, 29.4%)
CIE-LABlab(52.41, 23.88, -31.94)
CIE-LCHlch(52.41, 39.88, 306.78°)
OKLaboklab(59.92% 0.0523 -0.0887)
OKLCHoklch(59.92% 0.103 300.5)
XYZxyz(24.6228, 20.5087, 45.8325)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71B4 #9BB471
analogous
#7179B4 #8A71B4 #AC71B4
triadic
#8A71B4 #B48A71 #71B48A
tetradic
#8A71B4 #B47179 #9BB471 #71B4AC
square
#8A71B4 #B47179 #9BB471 #71B4AC
split-complementary
#8A71B4 #B4AC71 #79B471
monochromatic
#4F3B70 #6B5098 #8A71B4 #AB99C9 #CCC1DE

Accessibility & contrast

On white

4.12
#8A71B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A71B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71B4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71B4#FFFFFF#000000##000000
##8A71B41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#617DB7
Deuteranopia (green-blind)
#657DB2
Tritanopia (blue-blind)
#827C8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a71b4;
/* rgb */ color: rgb(138, 113, 180);
/* oklch */ color: oklch(59.9% 0.103 300.5);
Tailwind
colors: {
  custom: {
    50: '#ad9aca',
    500: '#8a71b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a71b4;
$custom-light: #ad9aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71b4",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 262.388,
    "s": 30.876,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59918,
    "c": 0.10295,
    "h": 300.5
  },
  "luminance": 0.20509
}

Semantic roles & 50–950 ramp

primary
#8A71B4
secondary
#C4CEB3
accent
#C761A1
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71B4

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

Preview Lab → · Contrast checker → · Palette generator →

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