#8971B2#8971B2

#8971B2 is a mid, moderate violet. Relative luminance 0.203; OKLCH L 59.7% C 0.100 H 300.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8971B2
RGBrgb(137, 113, 178)
HSLhsl(262, 30%, 57%)
HSVhsv(262, 37%, 70%)
CMYKcmyk(23%, 36.5%, 0%, 30.2%)
CIE-LABlab(52.22, 23.08, -31.08)
CIE-LCHlch(52.22, 38.72, 306.60°)
OKLaboklab(59.73% 0.0506 -0.0862)
OKLCHoklch(59.73% 0.1 300.4)
XYZxyz(24.2558, 20.3429, 44.7595)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8971B2 #9AB271
analogous
#717AB2 #8971B2 #AA71B2
triadic
#8971B2 #B28971 #71B289
tetradic
#8971B2 #B2717A #9AB271 #71B2AA
square
#8971B2 #B2717A #9AB271 #71B2AA
split-complementary
#8971B2 #B2AA71 #7AB271
monochromatic
#4E3B6D #6A5195 #8971B2 #AA99C8 #CBC0DD

Accessibility & contrast

On white

4.14
#8971B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8971B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8971B2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8971B2#FFFFFF#000000##000000
##8971B21.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#617CB5
Deuteranopia (green-blind)
#667CB0
Tritanopia (blue-blind)
#827B89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8971b2;
/* rgb */ color: rgb(137, 113, 178);
/* oklch */ color: oklch(59.7% 0.100 300.4);
Tailwind
colors: {
  custom: {
    50: '#ac9ac9',
    500: '#8971b2',
    950: '#000000',
  },
}
SCSS
$custom: #8971b2;
$custom-light: #ac9ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8971b2",
  "rgb": {
    "r": 137,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 262.154,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59726,
    "c": 0.09998,
    "h": 300.4
  },
  "luminance": 0.20343
}

Semantic roles & 50–950 ramp

primary
#8971B2
secondary
#C3CDB2
accent
#C662A1
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8971B2

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

Preview Lab → · Contrast checker → · Palette generator →

#8971B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva