#8A71B8#8A71B8

#8A71B8 is a mid, moderate violet. Relative luminance 0.207; OKLCH L 60.1% C 0.108 H 299.3°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A71B8
RGBrgb(138, 113, 184)
HSLhsl(261, 33%, 58%)
HSVhsv(261, 39%, 72%)
CMYKcmyk(25%, 38.6%, 0%, 27.8%)
CIE-LABlab(52.59, 24.86, -33.96)
CIE-LCHlch(52.59, 42.09, 306.20°)
OKLaboklab(60.12% 0.0531 -0.0945)
OKLCHoklch(60.12% 0.108 299.3)
XYZxyz(25.0361, 20.6741, 48.0096)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71B8 #9FB871
analogous
#717BB8 #8A71B8 #AD71B8
triadic
#8A71B8 #B88A71 #71B88A
tetradic
#8A71B8 #B8717B #9FB871 #71B8AD
square
#8A71B8 #B8717B #9FB871 #71B8AD
split-complementary
#8A71B8 #B8AD71 #7BB871
monochromatic
#4F3A74 #6A4F9D #8A71B8 #AC9ACC #CDC3E1

Accessibility & contrast

On white

4.09
#8A71B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#8A71B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71B8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71B8#FFFFFF#000000##000000
##8A71B81.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7DBB
Deuteranopia (green-blind)
#647DB6
Tritanopia (blue-blind)
#817D8C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a71b8;
/* rgb */ color: rgb(138, 113, 184);
/* oklch */ color: oklch(60.1% 0.108 299.3);
Tailwind
colors: {
  custom: {
    50: '#ad9acd',
    500: '#8a71b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a71b8;
$custom-light: #ad9acd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71b8",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 261.127,
    "s": 33.333,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60118,
    "c": 0.10844,
    "h": 299.3
  },
  "luminance": 0.20674
}

Semantic roles & 50–950 ramp

primary
#8A71B8
secondary
#C7D1B4
accent
#C95EA4
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71B8

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

Preview Lab → · Contrast checker → · Palette generator →

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