#8A71BB#8A71BB

#8A71BB is a mid, moderate violet. Relative luminance 0.208; OKLCH L 60.3% C 0.113 H 298.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A71BB
RGBrgb(138, 113, 187)
HSLhsl(260, 35%, 59%)
HSVhsv(260, 40%, 73%)
CMYKcmyk(26.2%, 39.6%, 0%, 26.7%)
CIE-LABlab(52.73, 25.61, -35.47)
CIE-LCHlch(52.73, 43.75, 305.83°)
OKLaboklab(60.27% 0.0538 -0.0989)
OKLCHoklch(60.27% 0.113 298.5)
XYZxyz(25.3539, 20.8012, 49.6834)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71BB #A2BB71
analogous
#717DBB #8A71BB #AF71BB
triadic
#8A71BB #BB8A71 #71BB8A
tetradic
#8A71BB #BB717D #A2BB71 #71BBAF
square
#8A71BB #BB717D #A2BB71 #71BBAF
split-complementary
#8A71BB #BBAF71 #7DBB71
monochromatic
#4F3A78 #6A4DA1 #8A71BB #AC9ACF #CEC4E3

Accessibility & contrast

On white

4.07
#8A71BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8A71BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71BB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71BB#FFFFFF#000000##000000
##8A71BB1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E7EBE
Deuteranopia (green-blind)
#627DB9
Tritanopia (blue-blind)
#807E8D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a71bb;
/* rgb */ color: rgb(138, 113, 187);
/* oklch */ color: oklch(60.3% 0.113 298.5);
Tailwind
colors: {
  custom: {
    50: '#ae9ad0',
    500: '#8a71bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a71bb;
$custom-light: #ae9ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71bb",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 260.27,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.6027,
    "c": 0.11255,
    "h": 298.5
  },
  "luminance": 0.20801
}

Semantic roles & 50–950 ramp

primary
#8A71BB
secondary
#C9D2B5
accent
#CB5DA6
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A71BB

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

Preview Lab → · Contrast checker → · Palette generator →

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