#8371BB#8371BB

#8371BB is a mid, moderate violet. Relative luminance 0.202; OKLCH L 59.6% C 0.112 H 293.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8371BB
RGBrgb(131, 113, 187)
HSLhsl(255, 35%, 59%)
HSVhsv(255, 40%, 73%)
CMYKcmyk(29.9%, 39.6%, 0%, 26.7%)
CIE-LABlab(52.09, 23.56, -36.53)
CIE-LCHlch(52.09, 43.47, 302.83°)
OKLaboklab(59.63% 0.0453 -0.1021)
OKLCHoklch(59.63% 0.112 293.9)
XYZxyz(24.2326, 20.2230, 49.6308)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8371BB #A9BB71
analogous
#7184BB #8371BB #A871BB
triadic
#8371BB #BB8371 #71BB83
tetradic
#8371BB #BB7184 #A9BB71 #71BBA8
square
#8371BB #BB7184 #A9BB71 #71BBA8
split-complementary
#8371BB #BBA871 #84BB71
monochromatic
#493A78 #624DA1 #8371BB #A79ACF #CBC4E3

Accessibility & contrast

On white

4.16
#8371BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8371BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8371BB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8371BB#FFFFFF#000000##000000
##8371BB1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7DBE
Deuteranopia (green-blind)
#5E7BB9
Tritanopia (blue-blind)
#777E8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8371bb;
/* rgb */ color: rgb(131, 113, 187);
/* oklch */ color: oklch(59.6% 0.112 293.9);
Tailwind
colors: {
  custom: {
    50: '#a99ad0',
    500: '#8371bb',
    950: '#000000',
  },
}
SCSS
$custom: #8371bb;
$custom-light: #a99ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8371bb",
  "rgb": {
    "r": 131,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 254.595,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59628,
    "c": 0.11169,
    "h": 293.9
  },
  "luminance": 0.20223
}

Semantic roles & 50–950 ramp

primary
#8371BB
secondary
#CBD2B5
accent
#CB5DB0
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8371BB

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

Preview Lab → · Contrast checker → · Palette generator →

#8371BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva