#8A71BF#8A71BF

#8A71BF is a mid, moderate violet. Relative luminance 0.210; OKLCH L 60.5% C 0.118 H 297.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A71BF
RGBrgb(138, 113, 191)
HSLhsl(259, 38%, 60%)
HSVhsv(259, 41%, 75%)
CMYKcmyk(27.7%, 40.8%, 0%, 25.1%)
CIE-LABlab(52.92, 26.61, -37.47)
CIE-LCHlch(52.92, 45.96, 305.38°)
OKLaboklab(60.48% 0.0546 -0.1047)
OKLCHoklch(60.48% 0.118 297.5)
XYZxyz(25.7881, 20.9749, 51.9700)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71BF #A6BF71
analogous
#717FBF #8A71BF #B171BF
triadic
#8A71BF #BF8A71 #71BF8A
tetradic
#8A71BF #BF717F #A6BF71 #71BFB1
square
#8A71BF #BF717F #A6BF71 #71BFB1
split-complementary
#8A71BF #BFB171 #7FBF71
monochromatic
#4E387D #694BA7 #8A71BF #AD9BD2 #D0C5E5

Accessibility & contrast

On white

4.04
#8A71BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A71BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71BF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71BF#FFFFFF#000000##000000
##8A71BF1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7FC2
Deuteranopia (green-blind)
#607EBD
Tritanopia (blue-blind)
#7F7F8F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a71bf;
/* rgb */ color: rgb(138, 113, 191);
/* oklch */ color: oklch(60.5% 0.118 297.5);
Tailwind
colors: {
  custom: {
    50: '#ae9ad2',
    500: '#8a71bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a71bf;
$custom-light: #ae9ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71bf",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 259.231,
    "s": 37.864,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60477,
    "c": 0.11803,
    "h": 297.5
  },
  "luminance": 0.20975
}

Semantic roles & 50–950 ramp

primary
#8A71BF
secondary
#CBD5B7
accent
#CE5AA9
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A71BF

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

Preview Lab → · Contrast checker → · Palette generator →

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