#8D71B2#8D71B2

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

Color values

HEX#8D71B2
RGBrgb(141, 113, 178)
HSLhsl(266, 30%, 57%)
HSVhsv(266, 37%, 70%)
CMYKcmyk(20.8%, 36.5%, 0%, 30.2%)
CIE-LABlab(52.61, 24.32, -30.46)
CIE-LCHlch(52.61, 38.98, 308.61°)
OKLaboklab(60.11% 0.0554 -0.0844)
OKLCHoklch(60.11% 0.101 303.3)
XYZxyz(24.9238, 20.6874, 44.7909)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D71B2 #96B271
analogous
#7176B2 #8D71B2 #AD71B2
triadic
#8D71B2 #B28D71 #71B28D
tetradic
#8D71B2 #B27176 #96B271 #71B2AD
square
#8D71B2 #B27176 #96B271 #71B2AD
split-complementary
#8D71B2 #B2AD71 #76B271
monochromatic
#513B6D #6E5195 #8D71B2 #AD99C8 #CDC0DD

Accessibility & contrast

On white

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

On black

5.14
#8D71B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D71B2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D71B2#FFFFFF#000000##000000
##8D71B21.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#627DB5
Deuteranopia (green-blind)
#687DB0
Tritanopia (blue-blind)
#877B89
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8d71b2;
/* rgb */ color: rgb(141, 113, 178);
/* oklch */ color: oklch(60.1% 0.101 303.3);
Tailwind
colors: {
  custom: {
    50: '#af9ac9',
    500: '#8d71b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d71b2;
$custom-light: #af9ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d71b2",
  "rgb": {
    "r": 141,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 265.846,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60108,
    "c": 0.10094,
    "h": 303.3
  },
  "luminance": 0.20687
}

Semantic roles & 50–950 ramp

primary
#8D71B2
secondary
#C1CDB2
accent
#C6629B
background
#FAF9FC
surface
#F5F2F8
border
#CFCCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8D71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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